Sha256: 50d8593d08aed08a6e5e21a09825746bd3c50492d055fed782ef056387b8d33d

Contents?: true

Size: 375 Bytes

Versions: 17

Compression:

Stored size: 375 Bytes

Contents

Capybara::SpecHelper.spec '#go_back', :requires => [:js] do
  it "should fetch a response from the driver from the previous page" do
    @session.visit('/')
    expect(@session).to have_content('Hello world!')
    @session.visit('/foo')
    expect(@session).to have_content('Another World')
    @session.go_back
    expect(@session).to have_content('Hello world!')
  end
end

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/capybara-2.4.4/lib/capybara/spec/session/go_back_spec.rb
capybara-2.6.2 lib/capybara/spec/session/go_back_spec.rb
capybara-2.6.1 lib/capybara/spec/session/go_back_spec.rb
capybara-2.6.0 lib/capybara/spec/session/go_back_spec.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/capybara-2.4.4/lib/capybara/spec/session/go_back_spec.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/capybara-2.4.4/lib/capybara/spec/session/go_back_spec.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/capybara-2.4.4/lib/capybara/spec/session/go_back_spec.rb
capybara-2.5.0 lib/capybara/spec/session/go_back_spec.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/capybara-2.4.4/lib/capybara/spec/session/go_back_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/capybara-2.4.4/lib/capybara/spec/session/go_back_spec.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/capybara-2.4.4/lib/capybara/spec/session/go_back_spec.rb
capybara-2.4.4 lib/capybara/spec/session/go_back_spec.rb
capybara-2.4.3 lib/capybara/spec/session/go_back_spec.rb
capybara-2.4.2 lib/capybara/spec/session/go_back_spec.rb
capybara-2.4.1 lib/capybara/spec/session/go_back_spec.rb
capybara-2.4.0 lib/capybara/spec/session/go_back_spec.rb
capybara-2.3.0 lib/capybara/spec/session/go_back_spec.rb