Sha256: 83a9ca3e2417aef2b6784fc09404650202374575d587fab2fcf6183613aea7b3

Contents?: true

Size: 842 Bytes

Versions: 24

Compression:

Stored size: 842 Bytes

Contents

RSpec.describe "EitilIntegrate::RubyXL::ApplicationExporter.new" do

  let(:exporter) do
    EitilIntegrate::RubyXL::ApplicationExporter.new(start_date: '01-01-2020', end_date: '01-03-2020')
  end

  it "should convert the string arguments :start_date and :end_date into Date objects" do
    expect(exporter.start_date).to be_a Date
    expect(exporter.end_date).to   be_a Date
  end

  it "should create a :date_range accessor" do
    expect(exporter.date_range).to       be_a Range
    expect(exporter.date_range.first).to be_a Date
  end

  it "should create a RubyXL::Workbook and RubyXL::Worksheet" do
    expect(exporter.book).to  be_a RubyXL::Workbook
    expect(exporter.sheet).to be_a RubyXL::Worksheet
  end

  it "should set the X and Y coordinates to 0" do
    expect(exporter.x).to eq 0
    expect(exporter.y).to eq 0
  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
eitil-2.0.8 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-2.0.7 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-2.0.6 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-2.0.5 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-2.0.4 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-2.0.3 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-2.0.2 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-2.0.1 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-2.0.0 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-1.4.1 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-1.4.0 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-1.3.12 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-1.3.11 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-1.3.10 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-1.3.9 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-1.3.8 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-1.3.7 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-1.3.6 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-1.3.5 spec/eitil_integrate/application_exporter/initialize_spec.rb
eitil-1.3.4 spec/eitil_integrate/application_exporter/initialize_spec.rb