Sha256: bf6ae4e969994cfc02f7e66d9ced88dcab885997bda81ea4cc195df580da996a
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
require 'test_helper' class InheritNavigationTest < ActiveSupport::IntegrationCase test 'show first' do step = :first visit(foo_path(step)) assert has_content?(step.to_s) end test 'show second' do step = :second visit(foo_path(step)) assert has_content?(step.to_s) end test 'skip first' do step = :first visit(foo_path(step.to_s, :skip_step => 'true')) assert has_content?('second') end test 'invalid step' do step = :notastep assert_raise(ActionView::MissingTemplate) do visit(foo_path(step)) end end test 'finish' do step = :finish visit(foo_path(step)) assert has_content?('home') end end class IncludeNavigationTest < ActiveSupport::IntegrationCase test 'show first' do step = :first visit(bar_path(step)) assert has_content?(step.to_s) end test 'show second' do step = :second visit(bar_path(step)) assert has_content?(step.to_s) end test 'skip first' do step = :first visit(bar_path(step, :skip_step => 'true')) assert has_content?(:second.to_s) end test 'invalid step' do step = :notastep assert_raise(ActionView::MissingTemplate) do visit(bar_path(step)) end end test 'finish' do step = :finish visit(bar_path(step)) assert has_content?('home') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wicked-0.1.3 | test/integration/navigation_test.rb |