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