Sha256: 4020e877ba922d34633ee5f700265c4170ce94fde1bd925f619a8329c1a38e7b
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
require'spec_helper' describe 'Workbook renderer' do it "is registered" do ActionController::Renderers::RENDERERS.include?(:xlsx) ActionController::Renderers::RENDERERS.include?(:xls) end it "has xlsx mime type" do expect(Mime::XLSX).to be expect(Mime::XLSX.to_sym).to eq(:xlsx) expect(Mime::XLSX.to_s).to eq("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") end it "has xls mime type" do expect(Mime::XLS).to be expect(Mime::XLS.to_sym).to eq(:xls) expect(Mime::XLS.to_s).to eq("application/vnd.ms-excel") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workbook_rails-0.1.0 | spec/workbook_renderer_spec.rb |