Sha256: e8dfbd242cb30c17bbe4470044b1ce2f8eae315a6fbe4e4d734fdf8022239c6d
Contents?: true
Size: 861 Bytes
Versions: 2
Compression:
Stored size: 861 Bytes
Contents
shared_context "integration test setup", :integration => true do let(:result) { {} } before do empty_argv #$stderr = StringIO.new #$stdout = StringIO.new #$stdin = StringIO.new end after do $stderr = STDERR $stdout = STDOUT $stdin = STDIN end module Convoy class IntegrationTestCommand < ::Convoy::ActionCommand::Base def execute(result) result[:command_name] = command_name result[:command_options] = command_options result[:options] = options result[:arguments] = arguments result[:config] = config if config end end end def empty_argv while !ARGV.empty? do ARGV.delete_at(0) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
convoy-1.3.2 | spec/support/shared_contexts/integration_setup.rb |
convoy-1.2.0 | spec/support/shared_contexts/integration_setup.rb |