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.0 features/step_definitions/scope_steps.rb
thinking-sphinx-1.4.0 features/step_definitions/scope_steps.rb
thorsson_thinking-sphinx-2.0 features/step_definitions/scope_steps.rb
thinking-sphinx-1.3.20 features/step_definitions/scope_steps.rb
thinking-sphinx-2.0.0.rc2 features/step_definitions/scope_steps.rb
thinking-sphinx-1.3.19 features/step_definitions/scope_steps.rb