Sha256: 796e10a0563b7d9a7d5f00b65a21feaf1d202569b8297c060b5c1abce8315d45

Contents?: true

Size: 467 Bytes

Versions: 77

Compression:

Stored size: 467 Bytes

Contents

When /^I create a new alpha named (\w+)$/ do |name|
  Alpha.create!(:name => name, :value => 101)
end

When /^I change the (\w+) of alpha (\w+) to (\w+)$/ do |column, name, replacement|
  Alpha.find_by_name(name).update_attributes(column.to_sym => replacement)
end

When /^I filter by active alphas$/ do
  @results = nil
  @with[:active] = true
end

When /^I flag alpha (\w+) as inactive$/ do |name|
  Alpha.find_by_name(name).update_attributes(:active => false)
end

Version data entries

77 entries across 77 versions & 12 rubygems

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