spec/teaspoon/exceptions_spec.rb in teaspoon-0.8.0 vs spec/teaspoon/exceptions_spec.rb in teaspoon-0.9.0

- old
+ new

@@ -15,24 +15,24 @@ end describe ".add_rails_handling" do before do - subject.stub(:render_exceptions_with_javascript) + allow(subject).to receive(:render_exceptions_with_javascript) end it "sets config.assets.debug to false" do subject.add_rails_handling - expect(Rails.application.config.assets.debug).to be_false + expect(Rails.application.config.assets.debug).to be_falsey end it "sets config.action_dispatch.show_exceptions to true" do subject.add_rails_handling - expect(Rails.application.config.action_dispatch.show_exceptions).to be_true + expect(Rails.application.config.action_dispatch.show_exceptions).to be_truthy end it "calls #render_exceptions_with_javascript" do - subject.should_receive(:render_exceptions_with_javascript) + expect(subject).to receive(:render_exceptions_with_javascript) subject.add_rails_handling end end