Sha256: 2a0de79addea20724263336beb568f6b35e1b9b968b56b139f0b6bb20858e192
Contents?: true
Size: 573 Bytes
Versions: 3
Compression:
Stored size: 573 Bytes
Contents
require 'spec_helper' feature "Viewing pages that redirect to other locations", js: true do include SessionSteps background do @root = Page.find_root @root.redirect_to = "http://example.com" @root.title = "example.com" @root.save @intranet_root = Page.find_intranet_root end scenario "Clicking on a breadcrumb link that redirects to an external website" do login(:user) visit page_path(@intranet_root) within "#breadcrumb" do click_on "example.com" end page.should have_content "Example Domain" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
your_platform-1.0.1 | spec/features/page_redirects_spec.rb |
your_platform-1.0.0 | spec/features/page_redirects_spec.rb |
your_platform-0.0.2 | spec/features/page_redirects_spec.rb |