spec/zk/extensions_spec.rb in zk-1.9.6 vs spec/zk/extensions_spec.rb in zk-1.10.0
- old
+ new
@@ -4,11 +4,11 @@
describe 'Extensions' do
describe 'Exception#to_std_format' do
it %[should not barf if backtrace is nil] do
exc = StandardError.new
- exc.backtrace.should be_nil
- lambda { exc.to_std_format }.should_not raise_error
+ expect(exc.backtrace).to be_nil
+ expect { exc.to_std_format }.not_to raise_error
end
end
end
end