fix tests

This commit is contained in:
albert
2013-03-11 18:12:27 -04:00
parent 1ae21d51bc
commit fe97436f81
2 changed files with 2 additions and 1 deletions

View File

@@ -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])

View File

@@ -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