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
joshcutler-thinking-sphinx-1.3.18 features/searching_with_find_arguments.feature
thinking-sphinx-2.0.1 features/searching_with_find_arguments.feature
thinking-sphinx-2.0.0 features/searching_with_find_arguments.feature
thinking-sphinx-1.4.0 features/searching_with_find_arguments.feature
thorsson_thinking-sphinx-2.0 features/searching_with_find_arguments.feature
angelf-thinking-sphinx-1.3.18 features/searching_with_find_arguments.feature
thinking-sphinx-1.3.20 features/searching_with_find_arguments.feature
thinking-sphinx-2.0.0.rc2 features/searching_with_find_arguments.feature
thinking-sphinx-1.3.19 features/searching_with_find_arguments.feature
skalee-thinking-sphinx-1.3.14.2 features/searching_with_find_arguments.feature
skalee-thinking-sphinx-1.3.14.1 features/searching_with_find_arguments.feature
thorsson_thinking-sphinx-1.3.18 features/searching_with_find_arguments.feature
thinking-sphinx-allen-1.3.18.4 features/searching_with_find_arguments.feature
thinking-sphinx-allen-1.3.18.3 features/searching_with_find_arguments.feature
thinking-sphinx-allen-1.3.18.2 features/searching_with_find_arguments.feature
thinking-sphinx-2.0.0.rc1 features/searching_with_find_arguments.feature
thinking-sphinx-allen-1.3.18.1 features/searching_with_find_arguments.feature
thinking-sphinx-allen-1.3.18 features/searching_with_find_arguments.feature
thinking-sphinx-1.3.18 features/searching_with_find_arguments.feature
josh_cutler-thinking-sphinx-1.3.17 features/searching_with_find_arguments.feature