Sha256: 35f7a007dd8bb60d5fed6e699bdc960338b9916e0703425c0f3051a0829c1591
Contents?: true
Size: 1.06 KB
Versions: 14
Compression:
Stored size: 1.06 KB
Contents
# frozen_string_literal: true ############################################################################## # 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