integration/features/autocomplete.feature in rails3-jquery-autocomplete-0.6.6 vs integration/features/autocomplete.feature in rails3-jquery-autocomplete-0.7.0

- old
+ new

@@ -1,16 +1,18 @@ Feature: Autocomplete In order to do funky stuff As a User I want autocomplete! - Background: + Background: Given the following brands exists: - | name | - | Alpha | - | Beta | - | Gamma | + | name | state | + | Alpha | 1 | + | Beta | 0 | + | Gamma | 0 | + | Kappa | 1 | + | Kappler | 0 | And the following features exists: | name | | Shiny | | Glowy | @@ -60,5 +62,11 @@ Given I go to the new simple form page And I fill in "Brand name" with "al" And I choose "Alpha" in the autocomplete list Then the "Brand name" field should contain "Alpha" + @javascript + Scenario: Autocomplete with scope + Given I go to the new scoped autocomplete page + And I fill in "Brand name" with "ka" + And I choose "Kappa" in the autocomplete list + Then the "Brand name" field should contain "Kappa"