How to make pickle step for hash type field for mongoid

6 views
Skip to first unread message

kshil

unread,
Nov 30, 2010, 6:23:27 AM11/30/10
to pickle
class Person
include Mongoid::Document

field :address, :type => Hash

end

Given a person exist with address: {:city => "city", :street =>
"street"}

Shows undefined step as:

Given /^a person exists with address: \{:city => "([^"]*)", :street =>
"([^"]*)"\}$/ do |arg1, arg2|
pending # express the regexp above with the code you wish you had
end

How can I make it standard pickle step?
Reply all
Reply to author
Forward
0 new messages