Sha256: 448dcbc1eae3ae41875b80279413cc9e9c22dfde4c85f3d7d930ca990d0156e6
Contents?: true
Size: 1.03 KB
Versions: 14
Compression:
Stored size: 1.03 KB
Contents
############################################################################## # Shoulda Plugin ############################################################################## begin require 'shoulda-matchers' RSpec.configure do |config| config.include(Shoulda::Matchers::ActiveModel, :type => :model) config.include(Shoulda::Matchers::ActiveRecord, :type => :model) end Shoulda::Matchers.configure do |config| config.integrate do |with| with.test_framework :rspec end end if defined? ActiveRecord Shoulda::Matchers.configure do |config| config.integrate do |with| with.library :active_record end end end if defined? ActiveModel Shoulda::Matchers.configure do |config| config.integrate do |with| with.library :active_model end end end if defined? ActionController Shoulda::Matchers.configure do |config| config.integrate do |with| with.library :action_controller end end end rescue LoadError end
Version data entries
14 entries across 14 versions & 1 rubygems