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