Sha256: 2c8c7b699ccfe61689196526df1771e9d920ca909bd2dcba6a2c4b2a62d04268

Contents?: true

Size: 470 Bytes

Versions: 15

Compression:

Stored size: 470 Bytes

Contents

module Adhoq
  RSpec.describe Reporter::Xlsx, type: :model do
    context 'create xlsx report' do
      let(:report_data) do
        ex = Adhoq::AdhocExecution.new('xlsx', attributes_for(:adhoq_query, :greeting)[:query])

        Adhoq::Reporter.generate(ex)
      end

      specify do
        expect(report_data.read).to have_values_in_xlsx_sheet([
          %w[name description],
          ['hello', 'English greeting message']
        ])
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
adhoq-1.0.2 spec/adhoq/reporter/xlsx_spec.rb
adhoq-1.0.1 spec/adhoq/reporter/xlsx_spec.rb
adhoq-1.0.0 spec/adhoq/reporter/xlsx_spec.rb
adhoq-0.5.0 spec/adhoq/reporter/xlsx_spec.rb
adhoq-0.5.0.beta1 spec/adhoq/reporter/xlsx_spec.rb
adhoq-0.4.0 spec/adhoq/reporter/xlsx_spec.rb
adhoq-0.3.0 spec/adhoq/reporter/xlsx_spec.rb
adhoq-0.2.0 spec/adhoq/reporter/xlsx_spec.rb
adhoq-0.1.2 spec/adhoq/reporter/xlsx_spec.rb
adhoq-0.1.1 spec/adhoq/reporter/xlsx_spec.rb
adhoq-0.1.0 spec/adhoq/reporter/xlsx_spec.rb
adhoq-0.0.7 spec/adhoq/reporter/xlsx_spec.rb
adhoq-0.0.6 spec/adhoq/reporter/xlsx_spec.rb
adhoq-0.0.5 spec/adhoq/reporter/xlsx_spec.rb
adhoq-0.0.4 spec/adhoq/reporter/xlsx_spec.rb