Sha256: c04411200a44d8699f6e03587bed686839a806e824ecd7eb16deae07baa1b62e

Contents?: true

Size: 682 Bytes

Versions: 12

Compression:

Stored size: 682 Bytes

Contents

# Encoding: utf-8

require 'spec_helper'
require 'selenium_connect/report/report_factory'

describe SeleniumConnect::Report::ReportFactory do

  before(:each) do
    @report_factory = SeleniumConnect::Report::ReportFactory.new
  end

  it 'should return an empty main report' do
    report = @report_factory.build :main, {}
    report.should_not be_nil
  end

  it 'should return an empty job report' do
    report = @report_factory.build :job, {}
    report.should_not be_nil
  end

  it 'should throw an esception for unknown report type' do
    expect do
      @report_factory.build :not_real, {}
    end.to raise_error ArgumentError, 'Report type "not_real" unknown!'
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
selenium-connect-3.7.1 spec/unit/lib/selenium_connect/report/report_factory_spec.rb
selenium-connect-3.7.0 spec/unit/lib/selenium_connect/report/report_factory_spec.rb
selenium-connect-3.6.0 spec/unit/lib/selenium_connect/report/report_factory_spec.rb
selenium-connect-3.5.0 spec/unit/lib/selenium_connect/report/report_factory_spec.rb
selenium-connect-3.4.0 spec/unit/lib/selenium_connect/report/report_factory_spec.rb
selenium-connect-3.3.1 spec/unit/lib/selenium_connect/report/report_factory_spec.rb
selenium-connect-3.3.0 spec/unit/lib/selenium_connect/report/report_factory_spec.rb
selenium-connect-3.2.0 spec/unit/lib/selenium_connect/report/report_factory_spec.rb
selenium-connect-3.1.2 spec/unit/lib/selenium_connect/report/report_factory_spec.rb
selenium-connect-3.1.1 spec/unit/lib/selenium_connect/report/report_factory_spec.rb
selenium-connect-3.1.0 spec/unit/lib/selenium_connect/report/report_factory_spec.rb
selenium-connect-3.0.0 spec/unit/lib/selenium_connect/report/report_factory_spec.rb