Sha256: e1df497c7d396c0fe6bbc6b198e2e27aa1663be10c6dcb4bd75392e9e47cbe56

Contents?: true

Size: 586 Bytes

Versions: 9

Compression:

Stored size: 586 Bytes

Contents

require "test_helper"

class TestRooFormatterYAML < Minitest::Test
  def test_date_time_yaml
    name = "time-test"
    expected = File.open(TESTDIR + "/expected_results/#{name}.yml").read
    with_each_spreadsheet(name: name) do |workbook|
      assert_equal expected, workbook.to_yaml
    end
  end

  def test_bug_to_yaml_empty_sheet
    formats = [:openoffice, :excelx]
    with_each_spreadsheet(name: "emptysheets", format: formats) do |workbook|
      workbook.default_sheet = workbook.sheets.first
      workbook.to_yaml
      assert_equal "", workbook.to_yaml
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
roo-2.10.1 test/formatters/test_yaml.rb
roo-2.10.0 test/formatters/test_yaml.rb
roo-2.9.0 test/formatters/test_yaml.rb
roo-2.8.3 test/formatters/test_yaml.rb
roo-2.8.2 test/formatters/test_yaml.rb
roo-2.8.1 test/formatters/test_yaml.rb
roo-2.8.0 test/formatters/test_yaml.rb
roo-2.7.1 test/formatters/test_yaml.rb
roo-2.7.0 test/formatters/test_yaml.rb