Sha256: f3e0beafdeaac331c0246856fddbeae9ccb70bbcec91aa492649fd77df8d7ec5

Contents?: true

Size: 906 Bytes

Versions: 10

Compression:

Stored size: 906 Bytes

Contents

##############################################################################
#                             Shoulda Plugin
##############################################################################

begin
  require 'shoulda-matchers'
rescue LoadError
end

if defined? Shoulda
  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
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
rspectacular-0.70.8 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.70.7 lib/rspectacular/plugins/shoulda.rb
rspeckled-0.0.2 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.1 lib/rspeckled/plugins/shoulda.rb
rspectacular-0.70.6 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.70.5 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.70.4 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.70.3 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.70.2 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.70.1 lib/rspectacular/plugins/shoulda.rb