Sha256: 8ba98ffa43f03cadc96da3c8d86f7aa0d28abd74f5d294dffe41cc319daac65b

Contents?: true

Size: 396 Bytes

Versions: 14

Compression:

Stored size: 396 Bytes

Contents

if defined?(Capybara::Driver::Base)
  RSpec.configure do |config|
    config.after(:each, :facebook => true) do
      visit 'https://www.facebook.com'

      if Capybara.current_session.has_link? idsf('the Facebook account menu')
        click_link   idsf('the Facebook account menu')
        click_button 'Log Out'

        page.driver.browser.switch_to.alert.accept
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rspectacular-0.12.0 lib/rspectacular/plugins/facebook.rb
rspectacular-0.11.1 lib/rspectacular/plugins/facebook.rb
rspectacular-0.11.0 lib/rspectacular/plugins/facebook.rb
rspectacular-0.10.1 lib/rspectacular/plugins/facebook.rb
rspectacular-0.10.0 lib/rspectacular/plugins/facebook.rb
rspectacular-0.9.2 lib/rspectacular/plugins/facebook.rb
rspectacular-0.9.1 lib/rspectacular/plugins/facebook.rb
rspectacular-0.9.0 lib/rspectacular/plugins/facebook.rb
rspectacular-0.8.0 lib/rspectacular/plugins/facebook.rb
rspectacular-0.7.0 lib/rspectacular/plugins/facebook.rb
rspectacular-0.6.1 lib/rspectacular/plugins/facebook.rb
rspectacular-0.5.0 lib/rspectacular/plugins/facebook.rb
rspectacular-0.4.0 lib/rspectacular/plugins/facebook.rb
rspectacular-0.3.0 lib/rspectacular/plugins/facebook.rb