Sha256: 142b1a71831dc1c51a112dbc17b1d5184113a37a651cd1891cc8cd98b6c93cc4

Contents?: true

Size: 975 Bytes

Versions: 4

Compression:

Stored size: 975 Bytes

Contents

# Encoding: utf-8

require 'spec_helper'
require 'selenium_connect/job'

describe SeleniumConnect::Job do

  before(:each) do
    config = double 'SeleniumConnect::Configuration'
    report_factory = double 'SeleniumConnect::Report::ReportFactory'
    @report = double 'SeleniumConnect::Report::JobReport'
    allow(report_factory).to receive(:build).and_return(@report)
    @job = SeleniumConnect::Job.new config, report_factory
  end

  it 'should be initialized' do
    @job.should be_an_instance_of SeleniumConnect::Job
  end

  it 'should respond to start' do
    @job.should respond_to :start
  end

  it 'should return the driver on start' do
    pending('need to pass in something to build the driver here...')
    @job.start
  end

  it 'should respond to finish' do
    @job.should respond_to :finish
  end

  it 'should return a report on finish' do
    pending('need to pass in something to build the driver here...')
    @job.finish.should be @report
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
selenium-connect-3.1.2 spec/unit/lib/selenium_connect/job_spec.rb
selenium-connect-3.1.1 spec/unit/lib/selenium_connect/job_spec.rb
selenium-connect-3.1.0 spec/unit/lib/selenium_connect/job_spec.rb
selenium-connect-3.0.0 spec/unit/lib/selenium_connect/job_spec.rb