spec/praxis-blueprints/blueprint_spec.rb in praxis-blueprints-1.1.0 vs spec/praxis-blueprints/blueprint_spec.rb in praxis-blueprints-1.1.1
- old
+ new
@@ -307,10 +307,10 @@
it 'reports a dump error with the appropriate context' do
person.address.should_receive(:state).and_raise("Kaboom")
expect {
person.render(view_name, context: ['special_root'])
- }.to raise_error(/Error while dumping attribute state of type Address for context special_root.address .*. Reason: .*Kaboom/)
+ }.to raise_error(/Error while dumping attribute state of type Address for context special_root.address. Reason: .*Kaboom/)
end
end
context 'with sub-attribute that is an Attributor::Model' do