Kill trailing whitespace in ruby files

This commit is contained in:
小太
2013-03-19 23:10:10 +11:00
parent c107f96cec
commit cba839ba76
319 changed files with 2710 additions and 2710 deletions

View File

@@ -9,18 +9,18 @@ class PostsControllerTest < ActionController::TestCase
@post = FactoryGirl.create(:post, :uploader_id => @user.id, :tag_string => "aaaa")
MEMCACHE.flush_all
end
teardown do
CurrentUser.user = nil
CurrentUser.ip_addr = nil
end
context "index action" do
should "render" do
get :index
assert_response :success
end
context "with a search" do
should "render" do
get :index, {:tags => "aaaa"}
@@ -28,29 +28,29 @@ class PostsControllerTest < ActionController::TestCase
end
end
end
context "show action" do
should "render" do
get :show, {:id => @post.id}
assert_response :success
end
end
context "update action" do
should "work" do
post :update, {:id => @post.id, :post => {:tag_string => "bbb"}}, {:user_id => @user.id}
assert_redirected_to post_path(@post)
@post.reload
assert_equal("bbb", @post.tag_string)
end
end
context "revert action" do
setup do
@post.update_attributes(:tag_string => "zzz")
end
should "work" do
@version = @post.versions(true).first
assert_equal("aaaa", @version.tags)