Sha256: 440c65377cb9dbf1f8368b9fbe4504036a3da6258c068cafbbbb10034575eb47
Contents?: true
Size: 447 Bytes
Versions: 24
Compression:
Stored size: 447 Bytes
Contents
rspec.include Rad::Router::CoreRoutingHelper # rspec do # def self.with_router options = {} # scope = options[:before] || :all # # before scope do # # end # end # end rspec.define_matcher :redirect_to do |actual, expected| (actual.headers['Location'] and actual.headers['Location'].include?(expected)) or (actual.body and actual.body.include?('window.location') and actual.body.include?(expected)) end
Version data entries
24 entries across 24 versions & 1 rubygems