Sha256: 0e754a1765cfe16d027741c392060736d5d16001403ae983d3b6121dfa407de1

Contents?: true

Size: 834 Bytes

Versions: 14

Compression:

Stored size: 834 Bytes

Contents

# :enddoc:

if defined?(::ActiveRecord)
  require 'shoulda/matchers/active_record'
  require 'shoulda/matchers/active_model'
  module RSpec::Matchers
    include Shoulda::Matchers::ActiveRecord
    include Shoulda::Matchers::ActiveModel
  end
elsif defined?(::ActiveModel)
  require 'shoulda/matchers/active_model'
  module RSpec::Matchers
    include Shoulda::Matchers::ActiveModel
  end
end

if defined?(::ActionController)
  require 'shoulda/matchers/action_controller'
  module RSpec
    module Rails
      module ControllerExampleGroup
        include Shoulda::Matchers::ActionController
      end
    end
  end
end

if defined?(::ActionMailer)
  require 'shoulda/matchers/action_mailer'
  module RSpec
    module Rails
      module MailerExampleGroup
        include Shoulda::Matchers::ActionMailer
      end
    end
  end
end

Version data entries

14 entries across 11 versions & 4 rubygems

Version Path
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/integrations/rspec.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/integrations/rspec.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/integrations/rspec.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/integrations/rspec.rb
challah-0.6.2 vendor/bundle/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/integrations/rspec.rb
challah-0.6.1 vendor/bundle/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/integrations/rspec.rb
challah-0.6.0 vendor/bundle/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/integrations/rspec.rb
challah-0.5.4 vendor/bundle/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/integrations/rspec.rb
challah-0.5.3 vendor/bundle/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/integrations/rspec.rb
challah-0.5.2 vendor/bundle/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/integrations/rspec.rb
challah-0.5.1 vendor/bundle/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/integrations/rspec.rb
shoulda-matchers-1.0.0 lib/shoulda/matchers/integrations/rspec.rb
shoulda-matchers-1.0.0.beta3 lib/shoulda/matchers/integrations/rspec.rb
yetanothernguyen-shoulda-matchers-1.0.0.beta3 lib/shoulda/matchers/integrations/rspec.rb