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
sherpa99-thinking-sphinx-1.1.4 features/searching_with_find_arguments.feature
friendlyfashion-thinking-sphinx-2.0.14.4 features/searching_with_find_arguments.feature
friendlyfashion-thinking-sphinx-2.0.14.3 features/searching_with_find_arguments.feature
thinking-sphinx-2.1.0 features/searching_with_find_arguments.feature
thinking-sphinx-1.5.0 features/searching_with_find_arguments.feature
friendlyfashion-thinking-sphinx-2.0.14.2 features/searching_with_find_arguments.feature
friendlyfashion-thinking-sphinx-2.0.14.1 features/searching_with_find_arguments.feature
thinking-sphinx-2.0.14 features/searching_with_find_arguments.feature
thinking-sphinx-1.4.14 features/searching_with_find_arguments.feature
friendlyfashion-thinking-sphinx-2.0.13.3 features/searching_with_find_arguments.feature
friendlyfashion-thinking-sphinx-2.0.13.2 features/searching_with_find_arguments.feature
friendlyfashion-thinking-sphinx-2.0.13.1 features/searching_with_find_arguments.feature
friendlyfashion-thinking-sphinx-2.0.13 features/searching_with_find_arguments.feature
thinking-sphinx-2.0.13 features/searching_with_find_arguments.feature
thinking-sphinx-1.4.13 features/searching_with_find_arguments.feature
thinking-sphinx-2.0.12 features/searching_with_find_arguments.feature
thinking-sphinx-1.4.12 features/searching_with_find_arguments.feature
thinking-sphinx-2.0.11 features/searching_with_find_arguments.feature
thinking-sphinx-1.4.11 features/searching_with_find_arguments.feature
thinking-sphinx-2.0.10 features/searching_with_find_arguments.feature