Sha256: f84f2f5ca7ecf555ed9dc32cccc8473258ccf3da9e85f1517f9b018405d33582

Contents?: true

Size: 918 Bytes

Versions: 9

Compression:

Stored size: 918 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

9 entries across 9 versions & 1 rubygems

Version Path
wicked-2.0.0 test/integration/redirect_to_next_test.rb
wicked-1.4.0 test/integration/redirect_to_next_test.rb
wicked-1.3.4 test/integration/redirect_to_next_test.rb
wicked-1.3.3 test/integration/redirect_to_next_test.rb
wicked-1.3.2 test/integration/redirect_to_next_test.rb
wicked-1.3.1 test/integration/redirect_to_next_test.rb
wicked-1.3.0 test/integration/redirect_to_next_test.rb
wicked-1.2.1 test/integration/redirect_to_next_test.rb
wicked-1.1.1 test/integration/redirect_to_next_test.rb