Sha256: 839419deb9ee92eee53a2f851d944e655bf593fe9965a22084abf44859a591fe
Contents?: true
Size: 784 Bytes
Versions: 10
Compression:
Stored size: 784 Bytes
Contents
begin require 'webrat' rescue LoadError end RSpec.configure do |c| if defined?(Webrat) c.include Webrat::Matchers, :type => :request c.include Webrat::Matchers, :type => :controller c.include Webrat::Matchers, :type => :view c.include Webrat::Matchers, :type => :helper c.include Webrat::Matchers, :type => :mailer c.include Webrat::Methods, :type => :request c.include Webrat::Methods, :type => :controller module RequestInstanceMethods def last_response @response end end c.include RequestInstanceMethods, :type => :request c.before :type => :controller do Webrat.configure {|c| c.mode = :rails} end c.before :type => :request do Webrat.configure {|c| c.mode = :rack} end end end
Version data entries
10 entries across 10 versions & 1 rubygems