how to load factories in a Given a step

2 views
Skip to first unread message

ssmithstone

unread,
Jan 30, 2010, 2:17:05 PM1/30/10
to pickle
I have this blueprint

User.blueprint(:user1) do
email "xxxk"
firstname "xx"
lastname "x"
line1 "xxxx"
town "xxx"
county "xxxx"
postcode "xxxx"
password "xxxxx"
end

now in my cucumber I want to load this blueprint in the database but
coming up short here any help please

i've tried

Given user: "user1" exists

Given user: "user1"


Cheers

Ian White

unread,
Jan 30, 2010, 4:36:54 PM1/30/10
to pickle-...@googlegroups.com
"Given the user1 user exists" should do the trick.

In general:

Given the <blueprint name> <blueprint class> exists

Cheers,
Ian


Sent from my iPhone

On 30 Jan 2010, at 19:17, ssmithstone <stephen.s...@gmail.com>
wrote:

> --
> You received this message because you are subscribed to the Google
> Groups "pickle" group.
> To post to this group, send email to pickle-...@googlegroups.com.
> To unsubscribe from this group, send email to pickle-cucumb...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/pickle-cucumber?hl=en
> .
>

Reply all
Reply to author
Forward
0 new messages