spec/acfs/model/persistance_spec.rb in acfs-0.25.0.1.b227 vs spec/acfs/model/persistance_spec.rb in acfs-0.25.0.1.b228

- old
+ new

@@ -206,11 +206,11 @@ context 'with invalid data' do let(:data) { { age: 12 } } it 'should raise an error' do - expect { model_class.create! data }.to raise_error ::Acfs::InvalidResource do |error| - expect(error.errors).to be == { name: %w(required) } + expect { model_class.create! data }.to raise_error(::Acfs::InvalidResource) do |error| + expect(error.errors).to be == { 'name' => %w(required) } end end end end