Sha256: e5ddb6f58690f7c5a95bc570ecb1bc0ea329cd10bfee48bf457107b4323287fe

Contents?: true

Size: 448 Bytes

Versions: 11

Compression:

Stored size: 448 Bytes

Contents

# encoding: utf-8
require 'fedux_org/stdlib/environment'

module ProxyTester
  module SpecHelper
    module Environment
      include FeduxOrg::Stdlib::Environment
      alias_method :with_environment, :isolated_environment 

      def mock_stdin(&block)
        old_stdin = $stdin
        $stdin = double('stdin')

        block.call
      ensure
        $stdin = old_stdin
      end
    end
  end
end

World(ProxyTester::SpecHelper::Environment)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
proxy_tester-0.1.2 features/support/environment.rb
proxy_tester-0.1.1 features/support/environment.rb
proxy_tester-0.1.0 features/support/environment.rb
proxy_tester-0.0.9 features/support/environment.rb
proxy_tester-0.0.8 features/support/environment.rb
proxy_tester-0.0.7 features/support/environment.rb
proxy_tester-0.0.6 features/support/environment.rb
proxy_tester-0.0.5 features/support/environment.rb
proxy_tester-0.0.4 features/support/environment.rb
proxy_tester-0.0.3 features/support/environment.rb
proxy_tester-0.0.2 features/support/environment.rb