Sha256: b47c1f6b5d2ebb55f42abb2235290c098a808d4cfb5f64180ccfb91e3634520e

Contents?: true

Size: 763 Bytes

Versions: 17

Compression:

Stored size: 763 Bytes

Contents

require 'test_helper'

class HelpersTest < ActiveSupport::IntegrationCase

  test 'next_wizard_path' do
    step = :first
    visit(bar_path(step))
    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

17 entries across 17 versions & 1 rubygems

Version Path
wicked-1.0.2 test/integration/helpers_test.rb
wicked-1.0.1 test/integration/helpers_test.rb
wicked-1.0.0 test/integration/helpers_test.rb
wicked-0.6.1 test/integration/helpers_test.rb
wicked-0.6.0 test/integration/helpers_test.rb
wicked-0.5.0 test/integration/helpers_test.rb
wicked-0.4.0 test/integration/helpers_test.rb
wicked-0.3.4 test/integration/helpers_test.rb
wicked-0.3.3 test/integration/helpers_test.rb
wicked-0.3.2 test/integration/helpers_test.rb
wicked-0.3.1 test/integration/helpers_test.rb
wicked-0.3.0 test/integration/helpers_test.rb
wicked-0.2.0 test/integration/helpers_test.rb
wicked-0.1.6 test/integration/helpers_test.rb
wicked-0.1.6.pre test/integration/helpers_test.rb
wicked-0.1.5 test/integration/helpers_test.rb
wicked-0.1.4 test/integration/helpers_test.rb