require 'spec_helper'

feature 'failing test example' do
  before(:all) do
    @session = Capybara::Session.new(:poltergeist)
  end

  scenario 'example of a test which will fail, triggering a notification on Slack' do
    @session.visit 'https://www.example.com'
    expect(@session.status_code).to eq(500)
  end

  after(:all) do
    @session.driver.quit
  end
end
