* Fix for Pixiv changes

* Fix for artist/wiki pages for -names
This commit is contained in:
albert
2012-02-08 12:44:17 -05:00
parent 1eae813f6d
commit c14f020ce2
10 changed files with 31 additions and 51 deletions

View File

@@ -29,6 +29,12 @@ class ArtistsControllerTest < ActionController::TestCase
assert_response :success
end
should "get the show page for a negated tag" do
@artist.update_attribute(:name, "-aaa")
get :show, {:id => @artist.id}
assert_response :success
end
should "get the index page" do
get :index
assert_response :success

View File

@@ -39,6 +39,12 @@ class WikiPagesControllerTest < ActionController::TestCase
get :show, {:id => @wiki_page.id}
assert_response :success
end
should "render for a negated tag" do
@wiki_page.update_attribute(:title, "-aaa")
get :show, {:id => @wiki_page.id}
assert_response :success
end
end
context "create action" do