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