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

Version Path
rspeckled-0.0.16 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.15 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.14 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.13 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.12 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.11 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.10 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.9 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.8 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.7 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.6 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.5 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.4 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.3 lib/rspeckled/plugins/shoulda.rb