Skip to content

Commit

Permalink
ActiveSupport typo fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
alkesh26 committed Feb 1, 2019
1 parent 300c62f commit 38472af
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion activesupport/test/dependencies_test.rb
Expand Up @@ -841,7 +841,7 @@ def test_unloadable_constants_should_receive_callback
remove_constants(:C)
end

def test_new_contants_in_without_constants
def test_new_constants_in_without_constants
assert_equal [], (ActiveSupport::Dependencies.new_constants_in(Object) { })
assert ActiveSupport::Dependencies.constant_watch_stack.all? { |k, v| v.empty? }
end
Expand Down
2 changes: 1 addition & 1 deletion activesupport/test/hash_with_indifferent_access_test.rb
Expand Up @@ -486,7 +486,7 @@ def test_indifferent_to_hash
assert_equal @strings, roundtrip
assert_equal "1234", roundtrip.default

# Ensure nested hashes are not HashWithIndiffereneAccess
# Ensure nested hashes are not HashWithIndifferentAccess
new_to_hash = @nested_mixed.with_indifferent_access.to_hash
assert_not new_to_hash.instance_of?(HashWithIndifferentAccess)
assert_not new_to_hash["a"].instance_of?(HashWithIndifferentAccess)
Expand Down
2 changes: 1 addition & 1 deletion activesupport/test/notifications_test.rb
Expand Up @@ -81,7 +81,7 @@ def test_subscribed
assert_equal expected, events
end

def test_subsribing_to_instrumentation_while_inside_it
def test_subscribing_to_instrumentation_while_inside_it
# the repro requires that there are no evented subscribers for the "foo" event,
# so we have to duplicate some of the setup code
old_notifier = ActiveSupport::Notifications.notifier
Expand Down
2 changes: 1 addition & 1 deletion activesupport/test/safe_buffer_test.rb
Expand Up @@ -151,7 +151,7 @@ def test_titleize
assert_equal "", ActiveSupport::SafeBuffer.new("foo").clone_empty
end

test "clone_empty keeps the original dirtyness" do
test "clone_empty keeps the original dirtiness" do
assert_predicate @buffer.clone_empty, :html_safe?
assert_not_predicate @buffer.gsub!("", "").clone_empty, :html_safe?
end
Expand Down
2 changes: 1 addition & 1 deletion activesupport/test/share_lock_test.rb
Expand Up @@ -38,7 +38,7 @@ def test_exclusive_blocks_sharing
end
end

def test_multiple_exlusives_are_able_to_progress
def test_multiple_exclusives_are_able_to_progress
with_thread_waiting_in_lock_section(:sharing) do |sharing_thread_release_latch|
exclusive_threads = (1..2).map do
Thread.new do
Expand Down
2 changes: 1 addition & 1 deletion activesupport/test/time_travel_test.rb
Expand Up @@ -148,7 +148,7 @@ def test_time_helper_travel_to_with_subsequent_calls
end
end

def test_travel_to_will_reset_the_usec_to_avoid_mysql_rouding
def test_travel_to_will_reset_the_usec_to_avoid_mysql_rounding
Time.stub(:now, Time.now) do
travel_to Time.utc(2014, 10, 10, 10, 10, 50, 999999) do
assert_equal 50, Time.now.sec
Expand Down
2 changes: 1 addition & 1 deletion activesupport/test/time_zone_test.rb
Expand Up @@ -32,7 +32,7 @@ def test_period_for_local
end
end

def test_period_for_local_with_ambigiuous_time
def test_period_for_local_with_ambiguous_time
zone = ActiveSupport::TimeZone["Moscow"]
period = zone.period_for_local(Time.utc(2015, 1, 1))
assert_equal period, zone.period_for_local(Time.utc(2014, 10, 26, 1, 0, 0))
Expand Down

0 comments on commit 38472af

Please sign in to comment.