Sha256: 9ac157590ae79b71b356bf2c7465e51c976bc7f91e92d76a5932c5c76706c474

Contents?: true

Size: 351 Bytes

Versions: 8

Compression:

Stored size: 351 Bytes

Contents

require'spec_helper'

describe 'Axlsx renderer' do

  it "is registered" do
    ActionController::Renderers::RENDERERS.include?(:xlsx)
  end

  it "has mime type" do
    mime = mime_type
  	expect(mime).to be
  	expect(mime.to_sym).to eq(:xlsx)
  	expect(mime.to_s).to eq("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
  end

end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/caxlsx_rails-0.6.3/spec/axlsx_renderer_spec.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/caxlsx_rails-0.6.3/spec/axlsx_renderer_spec.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/caxlsx_rails-0.6.3/spec/axlsx_renderer_spec.rb
caxlsx_rails-0.6.3 spec/axlsx_renderer_spec.rb
caxlsx_rails-0.6.2 spec/axlsx_renderer_spec.rb
axlsx_rails-0.6.1 spec/axlsx_renderer_spec.rb
axlsx_rails-0.6.0 spec/axlsx_renderer_spec.rb
axlsx_rails-0.5.2 spec/axlsx_renderer_spec.rb