spec/granite/form/model/attributes/reflections/represents_spec.rb in granite-form-0.5.0 vs spec/granite/form/model/attributes/reflections/represents_spec.rb in granite-form-0.6.0

- old
+ new

@@ -21,11 +21,11 @@ alias_attribute :subject, :author end end let(:instance) { Target.new attributes } - let(:attributes) { {subject: Author.new} } + let(:attributes) { { subject: Author.new } } let!(:reflection) { build_reflection } it { expect(reflection.reference).to eq('author') } it do @@ -51,10 +51,10 @@ end context 'when validate_reference is false' do let(:reflection) { build_reflection(validate_reference: false) } - it { expect { instance.validate }.not_to change { instance.errors.messages } } + it { expect { instance.validate }.not_to(change { instance.errors.messages }) } end end end describe '#type' do