features/attribute_updates.feature in warp-thinking-sphinx-1.2.12 vs features/attribute_updates.feature in warp-thinking-sphinx-1.3.10
- old
+ new
@@ -7,19 +7,25 @@
Given Sphinx is running
And I am searching on alphas
When I filter by 3 on value
Then I should get 1 result
- When I change the value of alpha two to 13
- And I wait for Sphinx to catch up
+ When I change the value of alpha four to 13
+ And I wait for Sphinx to catch up
And I filter by 13 on value
+ And I use index alpha_core
Then I should get 1 result
+ When I use index alternative_core
+ Then I should get 1 result
- When I change the value of alpha two to 3
- And I wait for Sphinx to catch up
+ When I change the value of alpha four to 4
+ And I wait for Sphinx to catch up
And I filter by 13 on value
+ And I use index alpha_core
Then I should get 0 results
+ When I use index alternative_core
+ Then I should get 0 result
Scenario: Updating attributes in Sphinx with delta indexes
Given Sphinx is running
And I am searching on betas
When I filter by 8 on value
@@ -28,6 +34,17 @@
When I change the value of beta eight to 18
And I filter by 18 on value
Then I should get 1 result
When I search for the document id of beta eight in the beta_delta index
- Then it should not exist
\ No newline at end of file
+ Then it should not exist
+
+ Scenario: Updating boolean attribute in Sphinx
+ Given Sphinx is running
+ And I am searching on alphas
+ When I filter by active alphas
+ Then I should get 10 results
+
+ When I flag alpha five as inactive
+ And I wait for Sphinx to catch up
+ And I filter by active alphas
+ Then I should get 9 results