Sha256: 0c25e29c8a705e597940d7a13ff6271c865d5d96d8d4cea8cf449da1a5408851

Contents?: true

Size: 346 Bytes

Versions: 7

Compression:

Stored size: 346 Bytes

Contents

module RSpec
  module Helpers
    def fake_stdin(strings)
      InputFaker.with_fake_input(strings) { yield }
    end

    def invoke(object, *args)
      object.class.send(:start, args.map { |arg| arg.to_s })
    end

    def green(string)
      "\e[32m#{string}\e[0m"
    end

    def red(string)
      "\e[31m#{string}\e[0m"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shelly-0.0.43 spec/helpers.rb
shelly-0.0.42 spec/helpers.rb
shelly-0.0.41 spec/helpers.rb
shelly-0.0.41.pre spec/helpers.rb
shelly-0.0.40 spec/helpers.rb
shelly-0.0.39 spec/helpers.rb
shelly-0.0.38 spec/helpers.rb