Guest User

Untitled

a guest
Jun 23rd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. Given /^I have (.+) named (.+)$/ do |nouns, names|
  2. #model = nouns.singularize.downcase
  3. model = nouns.singularize.capitalize.constantize
  4. puts model
  5. names.split(",").each do |name|
  6. model.spawn :name => name
  7. #Factory.create(model, :name => name)
  8. end
  9. end
Add Comment
Please, Sign In to add comment