spec/spec_helper.rb in lumber-1.2.1 vs spec/spec_helper.rb in lumber-1.2.2

- old
+ new

@@ -53,16 +53,22 @@ end def assert_valid_logger(class_name, logger_name) clazz = eval class_name clazz.should_not be_nil - clazz.respond_to?(:logger).should be_true + clazz.respond_to?(:logger).should be_truthy lgr = clazz.logger lgr.should be_an_instance_of(Log4r::Logger) lgr.fullname.should == logger_name end RSpec.configure do |config| + config.mock_with :rspec do |c| + c.syntax = [:should, :expect] + end + config.expect_with :rspec do |c| + c.syntax = [:should, :expect] + end config.before(:each) do Object.constants.grep(/^(Foo|Bar)/).each do |c| Object.send(:remove_const, c) end end