Sha256: 0330e68135bdf10e47b14c644c96004d5ea76f398bdce3ff80775c9f2215a32a

Contents?: true

Size: 917 Bytes

Versions: 3

Compression:

Stored size: 917 Bytes

Contents

require 'test_helper'

class RedirectToNextTest < ActiveSupport::IntegrationCase
  test 'redirect_to_next without options' do
    step = :first
    visit(redirect_to_next_path(step, :jump_to => :last_step))
    assert has_content?('last_step')
  end

  test 'redirect_to_next with options' do
    step = :first
    visit(redirect_to_next_path(step, :jump_to => :last_step, :notice => 'jump notice'))
    assert has_content?('last_step')
    assert has_content?('notice:jump notice')
  end

  test 'redirect_to_finish_wizard without options' do
    step = :first
    visit(redirect_to_next_path(step, :jump_to => :finish_wizard))
    assert has_content?('home')
  end

  test 'redirect_to_finish_wizard with options' do
    step = :first
    visit(redirect_to_next_path(step, :jump_to => :finish_wizard, :notice => 'jump notice'))
    assert has_content?('home')
    assert has_content?('notice:jump notice')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wicked-1.0.2 test/integration/redirect_to_next_test.rb
wicked-1.0.1 test/integration/redirect_to_next_test.rb
wicked-1.0.0 test/integration/redirect_to_next_test.rb