Sha256: 3d956035b07d71a54e3993627372ce6efe4af839c76041dedbaa229749147efe
Contents?: true
Size: 1.01 KB
Versions: 39
Compression:
Stored size: 1.01 KB
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
39 entries across 39 versions & 3 rubygems