tests: update gems to latest versions.

Also fix a few things that broke under shoulda-matchers 3.1.1.
This commit is contained in:
evazion
2017-02-04 21:27:59 -06:00
parent dd5974bf8c
commit e8cf417e9c
5 changed files with 25 additions and 26 deletions

View File

@@ -48,7 +48,7 @@ class TagAliasesControllerTest < ActionController::TestCase
end
# TODO: Broken in shoulda-matchers 2.8.0. Need to upgrade to 3.1.1.
should_eventually permit(:antecedent_name, :consequent_name, :forum_topic_id).for(:update)
# should_eventually permit(:antecedent_name, :consequent_name, :forum_topic_id).for(:update)
end
context "for an approved alias" do

View File

@@ -16,6 +16,12 @@ require 'cache'
Dir[File.expand_path(File.dirname(__FILE__) + "/factories/*.rb")].each {|file| require file}
Shoulda::Matchers.configure do |config|
config.integrate do |with|
with.library :rails
end
end
if defined?(MEMCACHE)
Object.send(:remove_const, :MEMCACHE)
end

View File

@@ -1330,7 +1330,7 @@ class PostTest < ActiveSupport::TestCase
subject { @post }
should_not allow_value("S", "safe", "derp").for(:rating)
should_not allow_value("s", "q", "e").for(:rating)
should_not allow_value("s", "e").for(:rating)
end
end