fix tests

This commit is contained in:
r888888888
2016-01-18 17:22:27 -08:00
parent ce3af81c9f
commit 46b32448e8
4 changed files with 6 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ require 'test_helper'
class ArtistVersionsControllerTest < ActionController::TestCase
context "An artist versions controller" do
setup do
CurrentUser.user = FactoryGirl.create(:user)
CurrentUser.user = FactoryGirl.create(:gold_user)
CurrentUser.ip_addr = "127.0.0.1"
@artist = FactoryGirl.create(:artist)
end
@@ -14,12 +14,12 @@ class ArtistVersionsControllerTest < ActionController::TestCase
end
should "get the index page" do
get :index
get :index, {}, {:user_id => CurrentUser.id}
assert_response :success
end
should "get the index page when searching for something" do
get :index, {:search => {:name => @artist.name}}
get :index, {:search => {:name => @artist.name}}, {:user_id => CurrentUser.id}
assert_response :success
end
end