Sha256: 47587f83c8ce61ff307b6cbeebb71c3f5b6f9b185e993150211f330b72190625

Contents?: true

Size: 574 Bytes

Versions: 6

Compression:

Stored size: 574 Bytes

Contents

Shindo.tests("Formatador") do

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

output = <<-OUTPUT
    one
    two
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

6 entries across 6 versions & 1 rubygems

Version Path
formatador-0.2.1 tests/basic_tests.rb
formatador-0.2.0 tests/basic_tests.rb
formatador-0.1.5 tests/basic_tests.rb
formatador-0.1.4 tests/basic_tests.rb
formatador-0.1.3 tests/basic_tests.rb
formatador-0.1.2 tests/basic_tests.rb