Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cc6f35d6f1
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (29 sloc) 0.527 kb
begin
require 'capybara/rspec'
rescue LoadError
end
begin
require 'capybara/rails'
rescue LoadError
end
begin
require 'webrat'
rescue LoadError
end
module RSpec
module Rails
module BrowserSimulators
extend ActiveSupport::Concern
def self.included(mod)
mod.instance_eval do
def webrat(&block)
block.call if defined?(Webrat)
end
def capybara(&block)
block.call if defined?(Capybara)
end
end
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.