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

@@ -8,11 +8,11 @@ class JanitorTrialsControllerTest < ActionController::TestCase
CurrentUser.user = @admin
CurrentUser.ip_addr = "127.0.0.1"
end
teardown do
CurrentUser.user = nil
end
context "new action" do
should "render" do
get :new, {}, {:user_id => @admin.id}
@@ -27,12 +27,12 @@ class JanitorTrialsControllerTest < ActionController::TestCase
end
end
end
context "promote action" do
setup do
@janitor_trial = FactoryGirl.create(:janitor_trial, :user_id => @user.id)
end
should "promote the janitor trial" do
assert_difference("JanitorTrial.count", -1) do
post :promote, {:id => @janitor_trial.id}, {:user_id => @admin.id}
@@ -41,12 +41,12 @@ class JanitorTrialsControllerTest < ActionController::TestCase
assert(@user.is_janitor?)
end
end
context "demote action" do
setup do
@janitor_trial = FactoryGirl.create(:janitor_trial, :user_id => @user.id)
end
should "demote the janitor trial" do
assert_difference("JanitorTrial.count", -1) do
post :demote, {:id => @janitor_trial.id}, {:user_id => @admin.id}
@@ -55,17 +55,17 @@ class JanitorTrialsControllerTest < ActionController::TestCase
assert(!@user.is_janitor?)
end
end
context "index action" do
setup do
FactoryGirl.create(:janitor_trial)
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 => {:user_name => @user.name}}, {:user_id => @admin.id}