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,25 +7,25 @@ class WikiPageVersionsControllerTest < ActionController::TestCase
CurrentUser.user = @user
CurrentUser.ip_addr = "127.0.0.1"
end
teardown do
CurrentUser.user = nil
CurrentUser.ip_addr = nil
end
context "index action" do
setup do
@wiki_page = FactoryGirl.create(:wiki_page)
@wiki_page.update_attributes(:body => "1 2")
@wiki_page.update_attributes(:body => "2 3")
end
should "list all versions" do
get :index
assert_response :success
assert_not_nil(assigns(:wiki_page_versions))
end
should "list all versions that match the search criteria" do
get :index, {:search => {:wiki_page_id => @wiki_page.id}}
assert_response :success