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

Version Path
rspeckled-0.0.30 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.29 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.28 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.27 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.26 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.25 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.24 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.23 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.22 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.21 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.20 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.19 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.18 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.17 lib/rspeckled/plugins/shoulda.rb