Rename behaviour to behavior in test case names
This commit is contained in:
parent
52989bf7cc
commit
90c0bde47c
@ -326,7 +326,7 @@ def test_active_connection?
|
||||
assert_not_predicate @pool, :active_connection?
|
||||
end
|
||||
|
||||
def test_checkout_behaviour
|
||||
def test_checkout_behavior
|
||||
pool = ConnectionPool.new(@pool_config)
|
||||
main_connection = pool.connection
|
||||
assert_not_nil main_connection
|
||||
|
@ -6,19 +6,19 @@
|
||||
class FinderRespondToTest < ActiveRecord::TestCase
|
||||
fixtures :topics
|
||||
|
||||
def test_should_preserve_normal_respond_to_behaviour_on_base
|
||||
def test_should_preserve_normal_respond_to_behavior_on_base
|
||||
assert_respond_to ActiveRecord::Base, :new
|
||||
assert_not_respond_to ActiveRecord::Base, :find_by_something
|
||||
end
|
||||
|
||||
def test_should_preserve_normal_respond_to_behaviour_and_respond_to_newly_added_method
|
||||
def test_should_preserve_normal_respond_to_behavior_and_respond_to_newly_added_method
|
||||
Topic.singleton_class.define_method(:method_added_for_finder_respond_to_test) { }
|
||||
assert_respond_to Topic, :method_added_for_finder_respond_to_test
|
||||
ensure
|
||||
Topic.singleton_class.remove_method :method_added_for_finder_respond_to_test
|
||||
end
|
||||
|
||||
def test_should_preserve_normal_respond_to_behaviour_and_respond_to_standard_object_method
|
||||
def test_should_preserve_normal_respond_to_behavior_and_respond_to_standard_object_method
|
||||
assert_respond_to Topic, :to_s
|
||||
end
|
||||
|
||||
|
@ -287,7 +287,7 @@ def after_teardown
|
||||
end
|
||||
end
|
||||
|
||||
class ConnectionPoolBehaviourTest < StoreTest
|
||||
class ConnectionPoolBehaviorTest < StoreTest
|
||||
include ConnectionPoolBehavior
|
||||
|
||||
def test_deprecated_connection_pool_works
|
||||
@ -316,7 +316,7 @@ def emulating_latency
|
||||
end
|
||||
end
|
||||
|
||||
class RedisDistributedConnectionPoolBehaviourTest < ConnectionPoolBehaviourTest
|
||||
class RedisDistributedConnectionPoolBehaviorTest < ConnectionPoolBehaviorTest
|
||||
private
|
||||
def store_options
|
||||
{ url: REDIS_URLS }
|
||||
|
@ -754,7 +754,7 @@ def test_string_to_date
|
||||
end
|
||||
end
|
||||
|
||||
class StringBehaviourTest < ActiveSupport::TestCase
|
||||
class StringBehaviorTest < ActiveSupport::TestCase
|
||||
def test_acts_like_string
|
||||
assert_predicate "Bambi", :acts_like_string?
|
||||
end
|
||||
|
@ -136,7 +136,7 @@ def test_several_behaviors
|
||||
assert_equal 4, @c.size
|
||||
end
|
||||
|
||||
def test_raise_behaviour
|
||||
def test_raise_behavior
|
||||
ActiveSupport::Deprecation.behavior = :raise
|
||||
|
||||
message = "Revise this deprecated stuff now!"
|
||||
|
@ -93,7 +93,7 @@ def test_should_return_string_as_json
|
||||
end
|
||||
end
|
||||
|
||||
class MultibyteCharsUTF8BehaviourTest < ActiveSupport::TestCase
|
||||
class MultibyteCharsUTF8BehaviorTest < ActiveSupport::TestCase
|
||||
include MultibyteTestHelpers
|
||||
|
||||
def setup
|
||||
|
@ -64,7 +64,7 @@ def test_attaches_subscribers_with_inherit_all_option
|
||||
PartySubscriber.detach_from :doodle
|
||||
end
|
||||
|
||||
def test_attaches_subscribers_with_inherit_all_option_replaces_original_behaviour
|
||||
def test_attaches_subscribers_with_inherit_all_option_replaces_original_behavior
|
||||
PartySubscriber.attach_to :doodle, inherit_all: true
|
||||
|
||||
ActiveSupport::Notifications.instrument("another_open_party.doodle")
|
||||
|
Loading…
Reference in New Issue
Block a user