fix tests
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
class PostVersionsController < ApplicationController
|
||||
respond_to :html, :xml, :json
|
||||
rescue_from ActiveRecord::StatementInvalid, :with => :rescue_exception
|
||||
|
||||
def index
|
||||
@post_versions = PostVersion.search(params[:search]).order("updated_at desc").paginate(params[:page], :search_count => params[:search])
|
||||
|
||||
@@ -23,7 +23,7 @@ class TagSubscriptionTest < ActiveSupport::TestCase
|
||||
should "fail" do
|
||||
sub = FactoryGirl.build(:tag_subscription, :tag_query => "aaa bbb", :creator => @user, :name => "zzz")
|
||||
sub.save
|
||||
assert_equal(["Creator can subscribe up to 0 tags"], sub.errors.full_messages)
|
||||
assert_equal(["You can create up to 0 tag subscriptions"], sub.errors.full_messages)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user