Skip to content

Commit

Permalink
whitespace ✂️
Browse files Browse the repository at this point in the history
  • Loading branch information
jonleighton committed Mar 30, 2012
1 parent 2eb1118 commit bd40e5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions activerecord/test/cases/locking_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -230,16 +230,16 @@ def test_update_without_attributes_does_not_only_update_lock_version


def test_polymorphic_destroy_with_dependencies_and_lock_version def test_polymorphic_destroy_with_dependencies_and_lock_version
car = Car.create! car = Car.create!

assert_difference 'car.wheels.count' do assert_difference 'car.wheels.count' do
car.wheels << Wheel.create! car.wheels << Wheel.create!
end end
assert_difference 'car.wheels.count', -1 do assert_difference 'car.wheels.count', -1 do
car.destroy car.destroy
end end
assert car.destroyed? assert car.destroyed?
end end

def test_removing_has_and_belongs_to_many_associations_upon_destroy def test_removing_has_and_belongs_to_many_associations_upon_destroy
p = RichPerson.create! p = RichPerson.create!
p.treasures.create! p.treasures.create!
Expand All @@ -248,7 +248,6 @@ def test_removing_has_and_belongs_to_many_associations_upon_destroy
assert p.treasures.empty? assert p.treasures.empty?
assert RichPerson.connection.select_all("SELECT * FROM peoples_treasures WHERE rich_person_id = 1").empty? assert RichPerson.connection.select_all("SELECT * FROM peoples_treasures WHERE rich_person_id = 1").empty?
end end

end end


class OptimisticLockingWithSchemaChangeTest < ActiveRecord::TestCase class OptimisticLockingWithSchemaChangeTest < ActiveRecord::TestCase
Expand Down
2 changes: 1 addition & 1 deletion activerecord/test/schema/schema.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def create_table(*args, &block)
t.references :best_friend_of t.references :best_friend_of
t.timestamps t.timestamps
end end

create_table :peoples_treasures, :id => false, :force => true do |t| create_table :peoples_treasures, :id => false, :force => true do |t|
t.column :rich_person_id, :integer t.column :rich_person_id, :integer
t.column :treasure_id, :integer t.column :treasure_id, :integer
Expand Down

0 comments on commit bd40e5c

Please sign in to comment.