Sha256: a4162ad66affc30d96674dfb830b439e6757267c76aacedbac3db24ba7011a42

Contents?: true

Size: 737 Bytes

Versions: 1

Compression:

Stored size: 737 Bytes

Contents

# this file generated by script/generate pickle

Given(/^#{CaptureModel} exists$/) do |name|
  create_model(name)
end

Given(/^#{CaptureModel} exists with #{CaptureFields}$/) do |name, fields|
  create_model(name, fields)
end

Then(/^#{CaptureModel} should exist with #{CaptureFields}$/) do |name, fields|
  find_model(name, fields).should_not be_nil
end

Then(/^#{CaptureModel} should (?:be|have) (?:an? )?([\w ]+)$/) do |name, predicate|
  predicate_method = predicate.gsub(' ', '_')
  model(name).should send("be_#{predicate_method}")
end

Then(/^#{CaptureModel} should not (?:be|have) (?:an? )?([\w ]+)$/) do |name, predicate|
  predicate_method = predicate.gsub(' ', '_')
  model(name).should_not send("be_#{predicate_method}")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ianwhite-pickle-0.1.3 rails_generators/pickle/templates/pickle_steps.rb