Sha256: 1757c702ff57f520e9c849e29f1893a1b165ef33987a078ede676a20f58606a0

Contents?: true

Size: 459 Bytes

Versions: 2

Compression:

Stored size: 459 Bytes

Contents

require_relative 'spec_helper'

describe 'SauceDocumentation' do
  def add_sauce_link
    RSpec.current_example.metadata[:sauce_test_link] = 'https://saucelabs.com/beta/tests/1234'
  end

  it 'fails and does not output sauce link' do
    # if we're not using sauce_rspec then we should see the regular failure
    # except omit the link
    expect(1).to eq(2)
  end

  it 'fails and outputs sauce link' do
    add_sauce_link
    expect(3).to eq(4)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sauce_documentation-0.0.4 formatter_spec/sauce_documentation_spec.rb
sauce_documentation-0.0.3 formatter_spec/sauce_documentation_spec.rb