Replace attr_accessible with strong parameters

This commit is contained in:
Tom Hughes 2013-06-26 22:53:50 +01:00
parent 3875882172
commit f0feca800d
28 changed files with 73 additions and 75 deletions

View file

@ -77,13 +77,13 @@ class NodeTest < ActiveSupport::TestCase
# Check that you can create a node and store it
def test_create
node_template = Node.new({
node_template = Node.new(
:latitude => 12.3456,
:longitude => 65.4321,
:changeset_id => changesets(:normal_user_first_change).id,
:visible => 1,
:version => 1
}, :without_protection => true)
)
assert node_template.create_with_history(users(:normal_user))
node = Node.find(node_template.id)