Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The class should equal, not the other way round #11

Merged
merged 1 commit into from Apr 3, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions spec/unit/config_spec.rb
Expand Up @@ -27,8 +27,8 @@
@config = Steno::Config.from_hash(@hash)

@config.default_log_level.should == :debug2
@config.context.should.class == Steno::Context::Null
@config.codec.should.class == Steno::Codec::Json
@config.context.class.should == Steno::Context::Null
@config.codec.class.should == Steno::Codec::Json

@config.sinks.size.should == 2
@config.sinks.should =~ [@mock_sink_file, @mock_sink_eventlog]
Expand Down Expand Up @@ -77,8 +77,8 @@
@config = Steno::Config.from_hash(@hash)

@config.default_log_level.should == :debug2
@config.context.should.class == Steno::Context::Null
@config.codec.should.class == Steno::Codec::Json
@config.context.class.should == Steno::Context::Null
@config.codec.class.should == Steno::Codec::Json

@config.sinks.size.should == 2
@config.sinks.should =~ [@mock_sink_file, @mock_sink_syslog]
Expand Down Expand Up @@ -128,9 +128,9 @@

config.default_log_level.should == :info

config.context.should.class == Steno::Context::Null
config.context.class.should == Steno::Context::Null

config.codec.should.class == Steno::Codec::Json
config.codec.class.should == Steno::Codec::Json
end

it "should set the default_log_level if a key with the same name is supplied" do
Expand Down