Sha256: ee962f7cb7d226b6005e03f8b0cb52e288cf0839157706d9c3cb774c42b2f9e1

Contents?: true

Size: 525 Bytes

Versions: 9

Compression:

Stored size: 525 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

require 'rspec'
require 'vimgolf'

require 'stringio'

module Kernel
  def capture_stdio(input = nil, &block)
    org_stdin, $stdin = $stdin, StringIO.new(input) if input
    org_stdout, $stdout = $stdout, StringIO.new
    yield
    return @out = $stdout.string
  ensure
    $stdout = org_stdout
    $stdin = org_stdin
  end
  alias capture_stdout capture_stdio
end

RSpec.configure do |config|
  # config.include RSpec::Helpers
  # config.extend RSpec::Helpers::SemanticNames
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vimgolf-0.4.8 spec/helper.rb
vimgolf-0.4.7 spec/helper.rb
vimgolf-0.4.6 spec/helper.rb
vimgolf-0.4.5 spec/helper.rb
vimgolf-0.4.4 spec/helper.rb
vimgolf-0.4.3 spec/helper.rb
vimgolf-0.4.2 spec/helper.rb
vimgolf-0.4.1 spec/helper.rb
vimgolf-0.4.0 spec/helper.rb