Sha256: ca8d478131db9d2ae2b7ec11e264f40933c4930599ce45f6ff66fa3de3f92b9b

Contents?: true

Size: 456 Bytes

Versions: 6

Compression:

Stored size: 456 Bytes

Contents

require 'test_helper'

class NestedBuilderTest < ActiveSupport::IntegrationCase

  test 'can use nested ids' do
    visit nested_builder_path(:last_step, :nested_id => "foo")
    assert has_content?("last")
    assert has_content?("params[:nested_id] foo")
  end

  test 'forwards nested ids' do
    visit nested_builder_path(:last_step, :nested_id => "foo")
    assert has_content?("last")
    click_link 'next'
    assert has_content?("home")
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wicked-0.6.1 test/integration/nested_builder_test.rb
wicked-0.6.0 test/integration/nested_builder_test.rb
wicked-0.5.0 test/integration/nested_builder_test.rb
wicked-0.4.0 test/integration/nested_builder_test.rb
wicked-0.3.4 test/integration/nested_builder_test.rb
wicked-0.3.3 test/integration/nested_builder_test.rb