Sha256: 794aab20f2f9662c6b646bd81785b0b5237f8ffc3ff35ca052a88b8b323f3537

Contents?: true

Size: 598 Bytes

Versions: 2

Compression:

Stored size: 598 Bytes

Contents

require 'rack'
require 'capybara'
require 'capybara/rspec'
require 'capybara/poltergeist'
require 'capybara/angular'

Capybara.default_driver = :poltergeist
Capybara.app = Rack::Directory.new('spec/public')
Capybara.default_max_wait_time = 2
Capybara::Angular.default_max_wait_time = 10

feature 'Waiting for angular' do
  include Capybara::Angular::DSL

  scenario 'without jquery' do
    open_timeout_page

    timeout_page_should_have_waited
  end

  def open_timeout_page
    visit '/index.html'
  end

  def timeout_page_should_have_waited
    expect(page).to have_content('waited')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capybara-angular-0.2.3 spec/capybara/angular_spec.rb
capybara-angular-0.2.2 spec/capybara/angular_spec.rb