Skip to content

Commit

Permalink
Fixed typos in ActiveRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
prathamesh-sonpatki committed Mar 28, 2013
1 parent 51ba66b commit 6943497
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/cases/adapter_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class << @connection
end end
end end


# test resetting sequences in odd tables in postgreSQL # test resetting sequences in odd tables in PostgreSQL
if ActiveRecord::Base.connection.respond_to?(:reset_pk_sequence!) if ActiveRecord::Base.connection.respond_to?(:reset_pk_sequence!)
require 'models/movie' require 'models/movie'
require 'models/subscriber' require 'models/subscriber'
Expand Down Expand Up @@ -167,7 +167,7 @@ def test_disable_referential_integrity
else else
@connection.execute "INSERT INTO fk_test_has_fk (fk_id) VALUES (0)" @connection.execute "INSERT INTO fk_test_has_fk (fk_id) VALUES (0)"
end end
# should deleted created record as otherwise disable_referential_integrity will try to enable contraints after executed block # should delete created record as otherwise disable_referential_integrity will try to enable constraints after executed block
# and will fail (at least on Oracle) # and will fail (at least on Oracle)
@connection.execute "DELETE FROM fk_test_has_fk" @connection.execute "DELETE FROM fk_test_has_fk"
end end
Expand Down
4 changes: 2 additions & 2 deletions activerecord/test/cases/autosave_association_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def test_assign_ids
end end


def test_assign_ids_for_through_a_belongs_to def test_assign_ids_for_through_a_belongs_to
post = Post.new(:title => "Assigning IDs works!", :body => "You heared it here first, folks!") post = Post.new(:title => "Assigning IDs works!", :body => "You heard it here first, folks!")
post.person_ids = [people(:david).id, people(:michael).id] post.person_ids = [people(:david).id, people(:michael).id]
post.save post.save
post.reload post.reload
Expand Down Expand Up @@ -1335,7 +1335,7 @@ def setup
assert !@pirate.valid? assert !@pirate.valid?
end end


test "should not automatically asd validate associations without :validate => true" do test "should not automatically add validate associations without :validate => true" do
assert @pirate.valid? assert @pirate.valid?
@pirate.non_validated_ship.name = '' @pirate.non_validated_ship.name = ''
assert @pirate.valid? assert @pirate.valid?
Expand Down
2 changes: 1 addition & 1 deletion activerecord/test/cases/batches_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_find_in_batches_should_start_from_the_start_option
end end
end end


def test_find_in_batches_shouldnt_excute_query_unless_needed def test_find_in_batches_shouldnt_execute_query_unless_needed
post_count = Post.count post_count = Post.count


assert_queries(2) do assert_queries(2) do
Expand Down

0 comments on commit 6943497

Please sign in to comment.