class NodeTest < Test::Unit::TestCase
fixtures :changesets, :current_nodes, :users, :current_node_tags, :nodes, :node_tags
- set_fixture_class :current_nodes => :Node
- set_fixture_class :nodes => :OldNode
- set_fixture_class :node_tags => :OldNodeTag
- set_fixture_class :current_node_tags => :NodeTag
+ set_fixture_class :current_nodes => Node
+ set_fixture_class :nodes => OldNode
+ set_fixture_class :node_tags => OldNodeTag
+ set_fixture_class :current_node_tags => NodeTag
def test_node_too_far_north
invalid_node_test(:node_too_far_north)
def test_create
node_template = Node.new(:latitude => 12.3456,
:longitude => 65.4321,
- :changeset_id => changesets(:normal_user_first_change),
+ :changeset_id => changesets(:normal_user_first_change).id,
:visible => 1,
:version => 1)
assert node_template.save_with_history!