spec/paperclip/paperclip_spec.rb in paperclip-4.3.6 vs spec/paperclip/paperclip_spec.rb in paperclip-4.3.7

- old
+ new

@@ -107,10 +107,11 @@ end end context "An ActiveRecord model with an 'avatar' attachment" do before do + Paperclip::Deprecations.stubs(:check) rebuild_model path: "tmp/:class/omg/:style.:extension" @file = File.new(fixture_file("5k.png"), 'rb') end after { @file.close } @@ -146,9 +147,13 @@ assert_equal "I'm set!", @dummy.other assert @dummy.avatar? end end + end + + it "calls Paperclip::Deprecations.check" do + expect(Paperclip::Deprecations).to have_received(:check) end context "with a subclass" do before do class ::SubDummy < Dummy; end