Client.blueprint do
title { Forgery:Name:title}
end
now in the spec im doing
it "should ...." do
client = Client.plan
Client.should_receive(:create).with(client)
post 'create' , :client => client
end
now this is failing
with
expected: ({:title=>"Mr"})
got: ({"title"=>"Mr"})
is there any way to get machinist to generate the attribute as
strings ?
or get rspec to pass the params as symbols
cheers
Otherwise you could just write a little helper to do the conversion.
- Pete