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.1 features/step_definitions/alpha_steps.rb
thinking-sphinx-2.0.0 features/step_definitions/alpha_steps.rb
thinking-sphinx-1.4.0 features/step_definitions/alpha_steps.rb
thorsson_thinking-sphinx-2.0 features/step_definitions/alpha_steps.rb
angelf-thinking-sphinx-1.3.18 features/step_definitions/alpha_steps.rb
thinking-sphinx-1.3.20 features/step_definitions/alpha_steps.rb
thinking-sphinx-2.0.0.rc2 features/step_definitions/alpha_steps.rb
thinking-sphinx-1.3.19 features/step_definitions/alpha_steps.rb
skalee-thinking-sphinx-1.3.14.2 features/step_definitions/alpha_steps.rb
skalee-thinking-sphinx-1.3.14.1 features/step_definitions/alpha_steps.rb
thorsson_thinking-sphinx-1.3.18 features/step_definitions/alpha_steps.rb
thinking-sphinx-allen-1.3.18.4 features/step_definitions/alpha_steps.rb
thinking-sphinx-allen-1.3.18.3 features/step_definitions/alpha_steps.rb
thinking-sphinx-allen-1.3.18.2 features/step_definitions/alpha_steps.rb
thinking-sphinx-2.0.0.rc1 features/step_definitions/alpha_steps.rb
thinking-sphinx-allen-1.3.18.1 features/step_definitions/alpha_steps.rb
thinking-sphinx-allen-1.3.18 features/step_definitions/alpha_steps.rb
thinking-sphinx-1.3.18 features/step_definitions/alpha_steps.rb
josh_cutler-thinking-sphinx-1.3.17 features/step_definitions/alpha_steps.rb
hawkerb-thinking-sphinx-1.3.18 features/step_definitions/alpha_steps.rb