Skip to content

Commit

Permalink
Testing that we get an error when trying to create with an unknown pr…
Browse files Browse the repository at this point in the history
…operty
  • Loading branch information
cheerfulstoic committed May 21, 2014
1 parent a1be2da commit a984c1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/unit/persistance_spec.rb
Expand Up @@ -19,6 +19,10 @@
o = clazz.new(name: 'kalle', age: '42')
o.props.should eq(name: 'kalle', age: 42)
end

it 'raises an error when given a property which is not defined' do
expect { clazz.new(unknown: true) }.to raise_error(Neo4j::ActiveNode::Property::UndefinedPropertyError)
end
end

describe 'save' do
Expand Down

0 comments on commit a984c1f

Please sign in to comment.