Sha256: 387dfa3f9536ac9640c3a14b45f6d58ac2bb7cb7218b2c22dfe7b1ee9e3518be

Contents?: true

Size: 458 Bytes

Versions: 14

Compression:

Stored size: 458 Bytes

Contents

module Pancake
  module Spec
    module Helpers
      def clear_constants(*classes)
        classes.flatten.each do |klass|
          begin            
            Object.class_eval do
              remove_const klass
            end
          rescue => e
          end
        end
      end # clear_constnat3
      
      def env_for(path = "/", opts = {})
        Rack::MockRequest.env_for(path, opts)
      end
    end # Helpers
  end # Spec
end # Pancake

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
hassox-pancake-0.1.6 spec/helpers/helpers.rb
pancake-0.1.25 spec/helpers/helpers.rb
pancake-0.1.24 spec/helpers/helpers.rb
pancake-0.1.22 spec/helpers/helpers.rb
pancake-0.1.20 spec/helpers/helpers.rb
pancake-0.1.19 spec/helpers/helpers.rb
pancake-0.1.18 spec/helpers/helpers.rb
pancake-0.1.17 spec/helpers/helpers.rb
pancake-0.1.16 spec/helpers/helpers.rb
pancake-0.1.15 spec/helpers/helpers.rb
pancake-0.1.13 spec/helpers/helpers.rb
pancake-0.1.12 spec/helpers/helpers.rb
pancake-0.1.10 spec/helpers/helpers.rb
pancake-0.1.8 spec/helpers/helpers.rb