Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Given /^I have (.+) named (.+)$/ do |nouns, names|
- #model = nouns.singularize.downcase
- model = nouns.singularize.capitalize.constantize
- puts model
- names.split(",").each do |name|
- model.spawn :name => name
- #Factory.create(model, :name => name)
- end
- end
Add Comment
Please, Sign In to add comment