Feature: select_tag helper

  Scenario: select_tag produces correct options
    Given a fixture app "indexable-app"
    And an empty file named "config.rb"
    And a file named "source/select_tag.html.erb" with:
    """
    options as array: <%= select_tag :colors, options: ["red", "blue", "blorange"], include_blank: "Choose a color" %>
    """
    And the Server is running at "indexable-app"
    When I go to "/select_tag.html"
    Then I should see:
    """
    <select name="colors" include_blank="Choose a color"><option value="">Choose a color</option>
    <option value="red">red</option>
    <option value="blue">blue</option>
    <option value="blorange">blorange</option>
    </select>
    """

Feature: select_tag helper

  Scenario: select_tag produces correct options
    Given a fixture app "indexable-app"
    And an empty file named "config.rb"
    And a file named "source/select_tag.html.erb" with:
    """
    options as array: <%= select_tag :colors, options: ["red", "blue", "blorange"], include_blank: "Choose a color" %>
    """
    And the Server is running at "indexable-app"
    When I go to "/select_tag.html"
    Then I should see '<select name="colors"'
    Then I should see '<option value="">Choose a color</option>'
    Then I should see '<option value="red">red</option>'
    Then I should see '<option value="blue">blue</option>'
    Then I should see '<option value="blorange">blorange</option>'
    Then I should see '</select>'

Fix tests after Padrino 0.12.2 release
Fix tests after Padrino 0.12.2 release
