Sha256: 56472f3d245bb2825e380e79726584a502c0622a6552d3fbf369c4ddf69a7987

Contents?: true

Size: 616 Bytes

Versions: 46

Compression:

Stored size: 616 Bytes

Contents

Shindo.tests("Formatador: basics") do

  tests("#display_line(Formatador)").returns("    Formatador\n") do
    capture_stdout do
      Formatador.display_line('Formatador')
    end
  end

output = <<-OUTPUT
    one
    two
OUTPUT
output = Formatador.parse(output)

  tests("#display_lines(['one', 'two']").returns(output) do
    capture_stdout do
      Formatador.display_lines(['one', 'two'])
    end
  end

  tests("#indent { display_line('Formatador') }").returns("      Formatador\n") do
    capture_stdout do
      Formatador.indent do
        Formatador.display_line('Formatador')
      end
    end
  end

end

Version data entries

46 entries across 42 versions & 14 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/formatador-1.1.0/tests/basic_tests.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/formatador-1.1.0/tests/basic_tests.rb
op_connect-0.1.2 vendor/bundle/ruby/3.1.0/gems/formatador-1.1.0/tests/basic_tests.rb
formatador-1.1.0 tests/basic_tests.rb
formatador-1.0.0 tests/basic_tests.rb
formatador-0.3.0 tests/basic_tests.rb
qiita_org-0.1.35 gems/ruby/2.7.0/gems/formatador-0.2.5/tests/basic_tests.rb
qiita_org-0.1.34 gems/ruby/2.7.0/gems/formatador-0.2.5/tests/basic_tests.rb
qiita_org-0.1.33 gems/ruby/2.7.0/gems/formatador-0.2.5/tests/basic_tests.rb
qiita_org-0.1.32 gems/ruby/2.7.0/gems/formatador-0.2.5/tests/basic_tests.rb
qiita_org-0.1.31 gems/ruby/2.7.0/gems/formatador-0.2.5/tests/basic_tests.rb
qiita_org-0.1.30 gems/ruby/2.7.0/gems/formatador-0.2.5/tests/basic_tests.rb
qiita_org-0.1.29 gems/ruby/2.7.0/gems/formatador-0.2.5/tests/basic_tests.rb
qiita_org-0.1.28 gems/ruby/2.7.0/gems/formatador-0.2.5/tests/basic_tests.rb
qiita_org-0.1.27 gems/ruby/2.7.0/gems/formatador-0.2.5/tests/basic_tests.rb
qiita_org-0.1.26 gems/ruby/2.7.0/gems/formatador-0.2.5/tests/basic_tests.rb
qiita_org-0.1.25 gems/ruby/2.7.0/gems/formatador-0.2.5/tests/basic_tests.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/formatador-0.2.5/tests/basic_tests.rb
alimentos-alu0100945645-0.1.0 vendor/bundle/ruby/2.3.0/gems/formatador-0.2.5/tests/basic_tests.rb
alimentos-alu0100945645-1.0.0 vendor/bundle/ruby/2.3.0/gems/formatador-0.2.5/tests/basic_tests.rb