Sha256: a5c5bc42aeda8a088145d9496d8bac70104f25e79831fb651247921351984bd9

Contents?: true

Size: 1023 Bytes

Versions: 53

Compression:

Stored size: 1023 Bytes

Contents

Feature: form_tag helper

  Scenario: form_tag produces relative links
    Given a fixture app "indexable-app"
    And an empty file named "config.rb"
    And a file named "source/form_tag.html.erb" with:
    """
    absolute: <% form_tag "/needs_index.html#absolute", relative: true do %>
    <% end %>
    relative: <% form_tag "needs_index.html#relative", relative: true do %>
    <% end %>
    """
    And a file named "source/form_tag/sub.html.erb" with:
    """
    absolute: <% form_tag "/needs_index.html#absolute", relative: true do %>
    <% end %>
    relative: <% form_tag "../needs_index.html#relative", relative: true do %>
    <% end %>
    """
    And the Server is running at "indexable-app"
    When I go to "/form_tag.html"
    Then I should see 'action="needs_index.html#absolute"'
    Then I should see 'action="needs_index.html#relative"'
    When I go to "/form_tag/sub.html"
    Then I should see 'action="../needs_index.html#absolute"'
    Then I should see 'action="../needs_index.html#relative"'

Version data entries

53 entries across 53 versions & 3 rubygems

Version Path
middleman-core-4.6.0 features/helpers_form_tag.feature
middleman-core-4.5.1 features/helpers_form_tag.feature
middleman-core-4.5.0 features/helpers_form_tag.feature
middleman-core-4.4.3 features/helpers_form_tag.feature
middleman-core-4.4.2 features/helpers_form_tag.feature
middleman-core-4.4.0 features/helpers_form_tag.feature
middleman-core-4.3.11 features/helpers_form_tag.feature
middleman-core-4.3.10 features/helpers_form_tag.feature
middleman-core-4.3.8 features/helpers_form_tag.feature
middleman-core-4.3.7 features/helpers_form_tag.feature
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/middleman-core-4.3.3/features/helpers_form_tag.feature
middleman-core-4.3.6 features/helpers_form_tag.feature
middleman-core-4.3.5 features/helpers_form_tag.feature
middleman-core-4.3.4 features/helpers_form_tag.feature
middleman-core-4.3.3 features/helpers_form_tag.feature
middleman-core-4.3.2 features/helpers_form_tag.feature
middleman-core-4.3.1 features/helpers_form_tag.feature
middleman-core-4.3.0 features/helpers_form_tag.feature
middleman-core-4.3.0.rc.4 features/helpers_form_tag.feature
middleman-core-4.3.0.rc.3 features/helpers_form_tag.feature