Kill trailing whitespace in ruby files
This commit is contained in:
@@ -16,12 +16,12 @@ module PostSets
|
||||
@post_1.add_favorite!(@user)
|
||||
@post_3.add_favorite!(@user)
|
||||
end
|
||||
|
||||
|
||||
teardown do
|
||||
CurrentUser.user = nil
|
||||
CurrentUser.ip_addr = nil
|
||||
end
|
||||
|
||||
|
||||
context "a favorite set for before the most recent post" do
|
||||
setup do
|
||||
id = ::Favorite.where(:user_id => @user.id, :post_id => @post_3.id).first.id
|
||||
@@ -36,7 +36,7 @@ module PostSets
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
context "a favorite set for after the second most recent post" do
|
||||
setup do
|
||||
id = ::Favorite.where(:user_id => @user.id, :post_id => @post_2.id).first.id
|
||||
@@ -51,7 +51,7 @@ module PostSets
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
context "a favorite set for page 2" do
|
||||
setup do
|
||||
::Favorite.stubs(:records_per_page).returns(1)
|
||||
@@ -65,7 +65,7 @@ module PostSets
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
context "a favorite set with no page specified" do
|
||||
setup do
|
||||
::Favorite.stubs(:records_per_page).returns(1)
|
||||
|
||||
Reference in New Issue
Block a user