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

@@ -7,7 +7,7 @@ class IpBansControllerTest < ActionController::TestCase
CurrentUser.user = @admin
CurrentUser.ip_addr = "127.0.0.1"
end
context "new action" do
should "render" do
get :new, {}, {:user_id => @admin.id}
@@ -22,17 +22,17 @@ class IpBansControllerTest < ActionController::TestCase
end
end
end
context "index action" do
setup do
FactoryGirl.create(:ip_ban)
end
should "render" do
get :index, {}, {:user_id => @admin.id}
assert_response :success
end
context "with search parameters" do
should "render" do
get :index, {:search => {:ip_addr => "1.2.3.4"}}, {:user_id => @admin.id}
@@ -40,12 +40,12 @@ class IpBansControllerTest < ActionController::TestCase
end
end
end
context "destroy action" do
setup do
@ip_ban = FactoryGirl.create(:ip_ban)
end
should "destroy an ip ban" do
assert_difference("IpBan.count", -1) do
post :destroy, {:id => @ip_ban.id, :format => "js"}, {:user_id => @admin.id}