Sha256: d4c7656efb4bc9ab7b662fb9aad47ad143c8aaf3e40210efd6fe35a359fa1a78

Contents?: true

Size: 796 Bytes

Versions: 3

Compression:

Stored size: 796 Bytes

Contents

require 'test_helper'

class HelpersTest < ActiveSupport::IntegrationCase

  test 'next_wizard_path' do
    step = :first
    visit(bar_path(step))
    assert has_content?('first')
    click_link 'skip'
    assert has_content?('second')
  end

  test 'wizard_path' do
    step = :first
    visit(bar_path(step))
    click_link 'current'
    assert has_content?(step.to_s)
  end

  test 'wizard_path with symbol arg' do
    step = :first
    visit(bar_path(step))
    click_link 'last'
    assert has_content?('last_step')
  end

  test 'previous_wizard_path' do
    step = :second
    visit(bar_path(step))
    click_link 'previous'
    assert has_content?("first")
  end

  test 'wizard_steps' do
    step = :last_step
    visit(bar_path(step))
    assert has_content?("step 3 of 3")
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wicked-focused-0.2.2 test/integration/helpers_test.rb
wicked-focused-0.2.1 test/integration/helpers_test.rb
wicked-focused-0.2.0 test/integration/helpers_test.rb