spec/uncruft/deprecatable_spec.rb in uncruft-0.2.1 vs spec/uncruft/deprecatable_spec.rb in uncruft-0.3.0

- old
+ new

@@ -11,11 +11,11 @@ include Uncruft::Deprecatable attr_accessor :first_name deprecate_attribute(:first_name, - message: "Please stop using this attribute!") + message: "Please stop using this attribute!") end end it 'applies deprecation warning when setting deprecated attribute' do expect(ActiveSupport::Deprecation).to receive(:warn).once @@ -42,10 +42,10 @@ def legacy_method "Hello Old World!" end deprecate_method(:legacy_method, - message: "Please stop using this method!") + message: "Please stop using this method!") end end it 'applies deprecation warning when calling the deprecated method' do expect(ActiveSupport::Deprecation).to receive(:warn)