Sha256: 8c18948cf199944982c919159cb62b398dc5bae6921ce3ebd97d82fd97407177

Contents?: true

Size: 337 Bytes

Versions: 6

Compression:

Stored size: 337 Bytes

Contents

require "test_helper"
require "my"

describe My do
  it "verbose" do
    h = "hello"
    out, _err = capture_io do
      My.verbose("a", h)
    end
    assert_match(/#{h}/, out)
  end

  it "verbose text" do
    h = "hello"
    out, _err = capture_io do
      My.verbose("a", "#{h}\nx\n")
    end
    assert_match(/#{h}/, out)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
doit-1.0.9 test/my_test.rb
doit-1.0.8 test/my_test.rb
doit-1.0.7 test/my_test.rb
doit-1.0.5 test/my_test.rb
doit-1.0.4 test/my_test.rb
doit-1.0.3 test/my_test.rb