Sha256: 376b7dd36b442bb2cccda70e9072326f309453592a362d78788bedd6134078da
Contents?: true
Size: 1.61 KB
Versions: 3
Compression:
Stored size: 1.61 KB
Contents
require 'test_helper' class InheritNavigationTest < ActiveSupport::IntegrationCase test 'default index' do visit(foo_index_path) assert has_content?('first') end 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 'pointer to first' do visit(bar_path(:wizard_first)) assert has_content?('first') end test 'pointer to last' do visit(bar_path(:wizard_last)) assert has_content?('last_step') 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wicked-0.1.6.pre | test/integration/navigation_test.rb |
wicked-0.1.5 | test/integration/navigation_test.rb |
wicked-0.1.4 | test/integration/navigation_test.rb |