tests: update gems to latest versions.
Also fix a few things that broke under shoulda-matchers 3.1.1.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user