Sha256: 69673894e99a548a7cdbcc72e41d182e09385dd78a508faa7b5422d0c2b9af67
Contents?: true
Size: 573 Bytes
Versions: 5
Compression:
Stored size: 573 Bytes
Contents
require "rspec" require "clamp" require 'stringio' RSpec.configure do |config| config.mock_with :rr end module OutputCapture def self.included(target) target.before do $stdout = @out = StringIO.new $stderr = @err = StringIO.new end target.after do $stdout = STDOUT $stderr = STDERR end end def stdout @out.string end def stderr @err.string end end module CommandFactory def given_command(name, &block) before do @command = Class.new(Clamp::Command, &block).new(name) end end end
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
clamp-0.5.0 | spec/spec_helper.rb |
clamp-0.4.0 | spec/spec_helper.rb |
jls-clamp-0.3.1.2 | spec/spec_helper.rb |
jls-clamp-0.3.1 | spec/spec_helper.rb |
clamp-0.3.1 | spec/spec_helper.rb |