Sha256: e25b24fe3f5f0023be893a30950f227aa5093087ec0bcd42897f1f7cb22994b9

Contents?: true

Size: 360 Bytes

Versions: 10

Compression:

Stored size: 360 Bytes

Contents

require 'test_helper'

class FormatsTest < ActiveSupport::TestCase

  [:xlsx, :ods, :csv].each do |format|
    test "Registers :#{format} mime type" do
      assert Mime::Type.lookup_by_extension(format)
    end

    test "Registers :#{format} template handler" do
      assert ActionController::Renderers::RENDERERS.include?(format.to_sym)
    end
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spreadsheet_architect-4.2.0 test/unit/formats_test.rb
spreadsheet_architect-4.1.0 test/unit/formats_test.rb
spreadsheet_architect-4.0.1 test/unit/formats_test.rb
spreadsheet_architect-4.0.0 test/unit/formats_test.rb
spreadsheet_architect-3.3.1 test/unit/formats_test.rb
spreadsheet_architect-3.3.0 test/unit/formats_test.rb
spreadsheet_architect-3.2.1 test/unit/formats_test.rb
spreadsheet_architect-3.2.0 test/unit/formats_test.rb
spreadsheet_architect-3.1.0 test/unit/formats_test.rb
spreadsheet_architect-3.0.0 test/unit/formats_test.rb