Sha256: b448f4b250ac57ed2e30461d75a5918cdc340057a62aa6f507cfc47ddd7c3357

Contents?: true

Size: 696 Bytes

Versions: 29

Compression:

Stored size: 696 Bytes

Contents

begin
  require 'capybara/rspec'
rescue LoadError
end

begin
  require 'capybara/rails'
rescue LoadError
end

RSpec.configure do |c|
  if defined?(Capybara::RSpecMatchers)
    c.include Capybara::RSpecMatchers, :type => :view
    c.include Capybara::RSpecMatchers, :type => :helper
    c.include Capybara::RSpecMatchers, :type => :mailer
    c.include Capybara::RSpecMatchers, :type => :controller
  end

  if defined?(Capybara::DSL)
    c.include Capybara::DSL, :type => :controller
  end

  unless defined?(Capybara::RSpecMatchers) || defined?(Capybara::DSL)
    if defined?(Capybara)
      c.include Capybara, :type => :request
      c.include Capybara, :type => :controller
    end
  end
end

Version data entries

29 entries across 24 versions & 4 rubygems

Version Path
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/rspec/rails/vendor/capybara.rb
gem_repackager-0.1.0 support/gems/rspec-rails-2.11.0/lib/rspec/rails/vendor/capybara.rb
rspec-rails-2.11.0 lib/rspec/rails/vendor/capybara.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/rspec/rails/vendor/capybara.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/rspec/rails/vendor/capybara.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/rspec/rails/vendor/capybara.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/rspec/rails/vendor/capybara.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/rspec/rails/vendor/capybara.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/rspec/rails/vendor/capybara.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/rspec/rails/vendor/capybara.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/rspec/rails/vendor/capybara.rb
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/rspec/rails/vendor/capybara.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/rspec/rails/vendor/capybara.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/rspec/rails/vendor/capybara.rb
rails-uploader-0.0.1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/rspec/rails/vendor/capybara.rb
rspec-rails-2.10.1 lib/rspec/rails/vendor/capybara.rb
rspec-rails-2.10.0 lib/rspec/rails/vendor/capybara.rb
rspec-rails-2.9.0 lib/rspec/rails/vendor/capybara.rb
rspec-rails-2.9.0.rc2 lib/rspec/rails/vendor/capybara.rb
rspec-rails-2.8.1 lib/rspec/rails/vendor/capybara.rb