Move to version 2.3.2 of rails.
This commit is contained in:
parent
9126d989c8
commit
2f3e23f6eb
47 changed files with 390 additions and 304 deletions
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class ChangesetTagTest < Test::Unit::TestCase
|
||||
class ChangesetTagTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
def test_changeset_tag_count
|
||||
|
@ -14,7 +14,7 @@ class ChangesetTagTest < Test::Unit::TestCase
|
|||
tag.id = 1
|
||||
tag.k = key*i
|
||||
tag.v = "v"
|
||||
assert_valid tag
|
||||
assert tag.valid?
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -25,7 +25,7 @@ class ChangesetTagTest < Test::Unit::TestCase
|
|||
tag.id = 1
|
||||
tag.k = "k"
|
||||
tag.v = val*i
|
||||
assert_valid tag
|
||||
assert tag.valid?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class ChangesetTest < Test::Unit::TestCase
|
||||
class ChangesetTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
def test_changeset_count
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class DiaryCommentTest < Test::Unit::TestCase
|
||||
class DiaryCommentTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
fixtures :diary_comments
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class DiaryEntryTest < Test::Unit::TestCase
|
||||
class DiaryEntryTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
fixtures :diary_entries, :languages
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class FriendTest < Test::Unit::TestCase
|
||||
class FriendTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
fixtures :friends
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class MessageTest < Test::Unit::TestCase
|
||||
class MessageTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
fixtures :messages
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class NodeTagTest < Test::Unit::TestCase
|
||||
class NodeTagTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
def test_tag_count
|
||||
|
@ -24,7 +24,7 @@ class NodeTagTest < Test::Unit::TestCase
|
|||
tag.id = current_node_tags(:t1).id
|
||||
tag.k = key*i
|
||||
tag.v = "v"
|
||||
assert_valid tag
|
||||
assert tag.valid?
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -35,7 +35,7 @@ class NodeTagTest < Test::Unit::TestCase
|
|||
tag.id = current_node_tags(:t1).id
|
||||
tag.k = "k"
|
||||
tag.v = val*i
|
||||
assert_valid tag
|
||||
assert tag.valid?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class NodeTest < Test::Unit::TestCase
|
||||
class NodeTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
def test_node_count
|
||||
|
@ -56,7 +56,7 @@ class NodeTest < Test::Unit::TestCase
|
|||
assert_equal dbnode.version, node.version
|
||||
assert_equal dbnode.visible, node.visible
|
||||
#assert_equal node.tile, QuadTile.tile_for_point(node.lat, node.lon)
|
||||
assert_valid node
|
||||
assert node.valid?
|
||||
end
|
||||
|
||||
# This helper method will check to make sure that a node is outwith the world,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class OldNodeTest < Test::Unit::TestCase
|
||||
class OldNodeTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
def test_old_node_tag_count
|
||||
|
@ -15,7 +15,7 @@ class OldNodeTest < Test::Unit::TestCase
|
|||
tag.version = node_tags(:t1).version
|
||||
tag.k = key*i
|
||||
tag.v = "v"
|
||||
assert_valid tag
|
||||
assert tag.valid?
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -27,7 +27,7 @@ class OldNodeTest < Test::Unit::TestCase
|
|||
tag.version = node_tags(:t1).version
|
||||
tag.k = "k"
|
||||
tag.v = val*i
|
||||
assert_valid tag
|
||||
assert tag.valid?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class OldNodeTest < Test::Unit::TestCase
|
||||
class OldNodeTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
def test_old_node_count
|
||||
|
@ -56,7 +56,7 @@ class OldNodeTest < Test::Unit::TestCase
|
|||
assert_equal dbnode.visible, node.visible
|
||||
assert_equal dbnode.timestamp, node.timestamp
|
||||
#assert_equal node.tile, QuadTile.tile_for_point(nodes(nod).lat, nodes(nod).lon)
|
||||
assert_valid node
|
||||
assert node.valid?
|
||||
end
|
||||
|
||||
# This helpermethod will check to make sure that a node is outwith the world,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class OldRelationTagTest < Test::Unit::TestCase
|
||||
class OldRelationTagTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
def test_tag_count
|
||||
|
@ -15,7 +15,7 @@ class OldRelationTagTest < Test::Unit::TestCase
|
|||
tag.version = 1
|
||||
tag.k = key*i
|
||||
tag.v = "v"
|
||||
assert_valid tag
|
||||
assert tag.valid?
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -27,7 +27,7 @@ class OldRelationTagTest < Test::Unit::TestCase
|
|||
tag.version = 1
|
||||
tag.k = "k"
|
||||
tag.v = val*i
|
||||
assert_valid tag
|
||||
assert tag.valid?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class WayTagTest < Test::Unit::TestCase
|
||||
class WayTagTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
def test_tag_count
|
||||
|
@ -15,7 +15,7 @@ class WayTagTest < Test::Unit::TestCase
|
|||
tag.version = 1
|
||||
tag.k = key*i
|
||||
tag.v = "v"
|
||||
assert_valid tag
|
||||
assert tag.valid?
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -27,7 +27,7 @@ class WayTagTest < Test::Unit::TestCase
|
|||
tag.version = 1
|
||||
tag.k = "k"
|
||||
tag.v = val*i
|
||||
assert_valid tag
|
||||
assert tag.valid?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class RelationMemberTest < Test::Unit::TestCase
|
||||
class RelationMemberTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
def test_relation_member_count
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class RelationTagTest < Test::Unit::TestCase
|
||||
class RelationTagTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
def test_relation_tag_count
|
||||
|
@ -14,7 +14,7 @@ class RelationTagTest < Test::Unit::TestCase
|
|||
tag.id = 1
|
||||
tag.k = key*i
|
||||
tag.v = "v"
|
||||
assert_valid tag
|
||||
assert tag.valid?
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -25,7 +25,7 @@ class RelationTagTest < Test::Unit::TestCase
|
|||
tag.id = 1
|
||||
tag.k = "k"
|
||||
tag.v = val*i
|
||||
assert_valid tag
|
||||
assert tag.valid?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class RelationTest < Test::Unit::TestCase
|
||||
class RelationTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
def test_relation_count
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class TraceTest < Test::Unit::TestCase
|
||||
class TraceTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
def test_trace_count
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class TracepointTest < Test::Unit::TestCase
|
||||
class TracepointTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
def test_tracepoint_count
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class TracetagTest < Test::Unit::TestCase
|
||||
class TracetagTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
def test_tracetag_count
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class UserTest < Test::Unit::TestCase
|
||||
class UserTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
fixtures :friends
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class UserTokenTest < Test::Unit::TestCase
|
||||
class UserTokenTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
fixtures :user_tokens
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class WayNodeTest < Test::Unit::TestCase
|
||||
class WayNodeTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
def test_way_nodes_count
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class WayTagTest < Test::Unit::TestCase
|
||||
class WayTagTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
def test_way_tag_count
|
||||
|
@ -14,7 +14,7 @@ class WayTagTest < Test::Unit::TestCase
|
|||
tag.id = current_way_tags(:t1).id
|
||||
tag.k = key*i
|
||||
tag.v = current_way_tags(:t1).v
|
||||
assert_valid tag
|
||||
assert tag.valid?
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -25,7 +25,7 @@ class WayTagTest < Test::Unit::TestCase
|
|||
tag.id = current_way_tags(:t1).id
|
||||
tag.k = "k"
|
||||
tag.v = val*i
|
||||
assert_valid tag
|
||||
assert tag.valid?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class WayTest < Test::Unit::TestCase
|
||||
class WayTest < ActiveSupport::TestCase
|
||||
api_fixtures
|
||||
|
||||
# Check that we have the correct number of currnet ways in the db
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue