Sha256: 068456e2d747dc008f3647cca21313207ba1ede9b1fb3c1ce4a0b289fd1c16a7

Contents?: true

Size: 536 Bytes

Versions: 46

Compression:

Stored size: 536 Bytes

Contents

When /^I use the ([\w]+) scope$/ do |scope|
  @results = results.send(scope.to_sym)
end

When /^I use the ([\w]+) scope set to "([^\"]*)"$/ do |scope, value|
  @results = results.send(scope.to_sym, value)
end

When /^I use the ([\w]+) scope set to (\d+)$/ do |scope, int|
  @results = results.send(scope.to_sym, int.to_i)
end

When /^I am retrieving the scoped result count$/ do
  @results = results.search_count
end

When /^I am retrieving the scoped result count for "([^"]*)"$/ do |query|
  @results = results.search_count query
end

Version data entries

46 entries across 46 versions & 4 rubygems

Version Path
thinking-sphinx-2.0.9 features/step_definitions/scope_steps.rb
thinking-sphinx-1.4.9 features/step_definitions/scope_steps.rb
thinking-sphinx-2.0.8 features/step_definitions/scope_steps.rb
thinking-sphinx-1.4.8 features/step_definitions/scope_steps.rb
thinking-sphinx-2.0.7 features/step_definitions/scope_steps.rb
thinking-sphinx-2.0.6 features/step_definitions/scope_steps.rb
thinking-sphinx-1.4.7 features/step_definitions/scope_steps.rb
thinking-sphinx-2.0.5 features/step_definitions/scope_steps.rb
thinking-sphinx-1.4.6 features/step_definitions/scope_steps.rb
sayso-thinking-sphinx-2.0.3.002 features/step_definitions/scope_steps.rb
sayso-thinking-sphinx-2.0.3.001 features/step_definitions/scope_steps.rb
thinking-sphinx-2.0.4 features/step_definitions/scope_steps.rb
thinking-sphinx-1.4.5 features/step_definitions/scope_steps.rb
thinking-sphinx-2.0.3 features/step_definitions/scope_steps.rb
thinking-sphinx-1.4.4 features/step_definitions/scope_steps.rb
thinking-sphinx-1.4.3 features/step_definitions/scope_steps.rb
thinking-sphinx-2.0.2 features/step_definitions/scope_steps.rb
thinking-sphinx-1.4.2 features/step_definitions/scope_steps.rb
thinking-sphinx-1.4.1 features/step_definitions/scope_steps.rb
thinking-sphinx-2.0.1 features/step_definitions/scope_steps.rb