Kill trailing whitespace in ruby files
This commit is contained in:
@@ -7,33 +7,33 @@ class NoteVersionsControllerTest < 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
|
||||
@note = FactoryGirl.create(:note)
|
||||
@user_2 = FactoryGirl.create(:user)
|
||||
|
||||
|
||||
CurrentUser.scoped(@user_2, "1.2.3.4") do
|
||||
@note.update_attributes(:body => "1 2")
|
||||
end
|
||||
|
||||
|
||||
CurrentUser.scoped(@user, "1.2.3.4") do
|
||||
@note.update_attributes(:body => "1 2 3")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
should "list all versions" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_not_nil(assigns(:note_versions))
|
||||
assert_equal(3, assigns(:note_versions).size)
|
||||
end
|
||||
|
||||
|
||||
should "list all versions that match the search criteria" do
|
||||
get :index, {:search => {:updater_id => @user_2.id}}
|
||||
assert_response :success
|
||||
|
||||
Reference in New Issue
Block a user