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

Version Path
clearance-2.3.0 spec/support/clearance.rb
clearance-2.2.1 spec/support/clearance.rb
clearance-2.2.0 spec/support/clearance.rb
clearance-2.1.0 spec/support/clearance.rb
clearance-2.0.0 spec/support/clearance.rb
clearance-2.0.0.beta2 spec/support/clearance.rb
clearance-2.0.0.beta1 spec/support/clearance.rb
clearance-1.17.0 spec/support/clearance.rb
clearance-1.16.2 spec/support/clearance.rb
clearance-1.16.1 spec/support/clearance.rb
clearance-1.16.0 spec/support/clearance.rb
clearance-1.15.1 spec/support/clearance.rb
clearance-1.15.0 spec/support/clearance.rb
clearance-1.14.2 spec/support/clearance.rb
clearance-1.14.1 spec/support/clearance.rb
clearance-1.14.0 spec/support/clearance.rb
clearance-1.13.0 spec/support/clearance.rb
clearance-1.12.1 spec/support/clearance.rb
clearance-1.12.0 spec/support/clearance.rb
clearance-1.11.0 spec/support/clearance.rb