Sha256: bf787b4f928216bf47fe2825218a7204868894d70056dd8b21487243b4267292

Contents?: true

Size: 1.63 KB

Versions: 97

Compression:

Stored size: 1.63 KB

Contents

Feature: Keeping AR::Base.find arguments in search calls
  To keep things as streamlined as possible
  Thinking Sphinx
  Should respect particular arguments to AR::Base.find calls
  
  Scenario: Respecting the include option
    Given Sphinx is running
    And I am searching on posts
    Then I should get 1 result
    
    When I get the first comment
    And I track queries
    And I compare comments
    Then I should have 1 query
    
    When I include comments
    Then I should get 1 result
    When I track queries
    And I compare comments
    Then I should have 0 queries
  
  Scenario: Respecting the include option without using a specific model
    Given Sphinx is running
    And I search for "Hello World"
    Then I should get 1 result

    When I get the first comment
    And I track queries
    And I compare comments
    Then I should have 1 query

    When I include comments
    Then I should get 1 result
    When I track queries
    And I compare comments
    Then I should have 0 queries
  
  Scenario: Respecting the select option
    Given Sphinx is running
    And I am searching on posts
    Then I should get 1 result
    And I should not get an error accessing the subject
    
    When I select only content
    Then I should get 1 result
    And I should get an error accessing the subject
  
  Scenario: Respecting the select option without using a specific model
    Given Sphinx is running
    When I search for "Hello World"
    Then I should get 1 result
    And I should not get an error accessing the subject

    When I select only content
    Then I should get 1 result
    And I should get an error accessing the subject

Version data entries

97 entries across 97 versions & 16 rubygems

Version Path
hawkerb-thinking-sphinx-1.3.18 features/searching_with_find_arguments.feature
thinking-sphinx-1.3.17 features/searching_with_find_arguments.feature
warp-thinking-sphinx-1.3.16 features/searching_with_find_arguments.feature
thinking-sphinx-1.3.16 features/searching_with_find_arguments.feature
hawkerb-thinking-sphinx-1.3.17 features/searching_with_find_arguments.feature
thinking-sphinx-1.3.15 features/searching_with_find_arguments.feature
hawkerb-thinking-sphinx-1.3.16 features/searching_with_find_arguments.feature
hawkerb-thinking-sphinx-1.3.15 features/searching_with_find_arguments.feature
hawkerb-thinking-sphinx-1.3.14 features/searching_with_find_arguments.feature
zipme-thinking-sphinx-1.3.14 features/searching_with_find_arguments.feature
thinking-sphinx-1.3.14 features/searching_with_find_arguments.feature
warp-thinking-sphinx-1.3.13 features/searching_with_find_arguments.feature
thinking-sphinx-1.3.13 features/searching_with_find_arguments.feature
thinking-sphinx-1.3.12 features/searching_with_find_arguments.feature
thinking-sphinx-1.3.11 features/searching_with_find_arguments.feature
warp-thinking-sphinx-1.3.11 features/searching_with_find_arguments.feature
warp-thinking-sphinx-1.3.10 features/searching_with_find_arguments.feature
thinking-sphinx-1.3.10 features/searching_with_find_arguments.feature
thinking-sphinx-1.3.9 features/searching_with_find_arguments.feature
ts-xml-0.0.1 features/searching_with_find_arguments.feature