Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

whitespace :scissors:

  • Loading branch information...
commit bd40e5c9e4d9da045cbcc0dfef27633da85ebc31 1 parent 2eb1118
@jonleighton jonleighton authored
View
7 activerecord/test/cases/locking_test.rb
@@ -230,16 +230,16 @@ def test_update_without_attributes_does_not_only_update_lock_version
def test_polymorphic_destroy_with_dependencies_and_lock_version
car = Car.create!
-
+
assert_difference 'car.wheels.count' do
car.wheels << Wheel.create!
- end
+ end
assert_difference 'car.wheels.count', -1 do
car.destroy
end
assert car.destroyed?
end
-
+
def test_removing_has_and_belongs_to_many_associations_upon_destroy
p = RichPerson.create!
p.treasures.create!
@@ -248,7 +248,6 @@ def test_removing_has_and_belongs_to_many_associations_upon_destroy
assert p.treasures.empty?
assert RichPerson.connection.select_all("SELECT * FROM peoples_treasures WHERE rich_person_id = 1").empty?
end
-
end
class OptimisticLockingWithSchemaChangeTest < ActiveRecord::TestCase
View
2  activerecord/test/schema/schema.rb
@@ -469,7 +469,7 @@ def create_table(*args, &block)
t.references :best_friend_of
t.timestamps
end
-
+
create_table :peoples_treasures, :id => false, :force => true do |t|
t.column :rich_person_id, :integer
t.column :treasure_id, :integer
Please sign in to comment.
Something went wrong with that request. Please try again.