Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix whitespace.

  • Loading branch information...
commit 48dfb020bbb08675f2c9ed10134a393746575e38 1 parent 296603b
@derekkraan derekkraan authored
View
14 activerecord/test/cases/relation_scoping_test.rb
@@ -163,20 +163,20 @@ def test_ensure_that_method_scoping_is_correctly_restored
end
def test_default_scope_filters_on_joins
- assert_equal 1, DeveloperFilteredOnJoins.all.count
- assert_equal DeveloperFilteredOnJoins.all.first, developers(:david).becomes(DeveloperFilteredOnJoins)
+ assert_equal 1, DeveloperFilteredOnJoins.all.count
+ assert_equal DeveloperFilteredOnJoins.all.first, developers(:david).becomes(DeveloperFilteredOnJoins)
end
def test_update_all_default_scope_filters_on_joins
- DeveloperFilteredOnJoins.update_all(:salary => 65000)
- assert_equal 65000, Developer.find(developers(:david).id).salary
+ DeveloperFilteredOnJoins.update_all(:salary => 65000)
+ assert_equal 65000, Developer.find(developers(:david).id).salary
- # has not changed jamis
- assert_not_equal 65000, Developer.find(developers(:jamis).id).salary
+ # has not changed jamis
+ assert_not_equal 65000, Developer.find(developers(:jamis).id).salary
end
def test_delete_all_default_scope_filters_on_joins
- assert_raise(ActiveRecord::ActiveRecordError) { DeveloperFilteredOnJoins.delete_all }
+ assert_raise(ActiveRecord::ActiveRecordError) { DeveloperFilteredOnJoins.delete_all }
end
end
View
2  activerecord/test/models/author.rb
@@ -204,6 +204,6 @@ class AuthorFavorite < ActiveRecord::Base
class AuthorWithPositiveReview < Author
def self.has_written_positive_reviews
- joins(:reviews).where(:reviews => {:positive => true})
+ joins(:reviews).where(:reviews => { :positive => true })
end
end
View
2  activerecord/test/models/book.rb
@@ -14,6 +14,6 @@ class BookPositiveReview < Book
default_scope { positive_reviews }
def self.positive_reviews
- joins(:reviews).where(:reviews => {:positive => true})
+ joins(:reviews).where(:reviews => { :positive => true })
end
end
View
4 activerecord/test/models/review.rb
@@ -1,4 +1,4 @@
class Review < ActiveRecord::Base
- belongs_to :author
- belongs_to :book
+ belongs_to :author
+ belongs_to :book
end
Please sign in to comment.
Something went wrong with that request. Please try again.