Sha256: d126711cac6b6ba1fd705ac6bab2072ac4c63692db3ba8bb101fadf09733a090
Contents?: true
Size: 590 Bytes
Versions: 24
Compression:
Stored size: 590 Bytes
Contents
require 'clearance' Clearance.configure do |config| # need an empty block to initialize the configuration object end module Clearance module Test module Redirects def redirect_to_url_after_create redirect_to(@controller.send(:url_after_create)) end def redirect_to_url_after_update redirect_to(@controller.send(:url_after_update)) end def redirect_to_url_after_destroy redirect_to(@controller.send(:url_after_destroy)) end end end end RSpec.configure do |config| config.include Clearance::Test::Redirects end
Version data entries
24 entries across 24 versions & 1 rubygems