bezelga
unread,Sep 9, 2009, 4:12:39 PM9/9/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Remarkable
Hello,
i'm stucked in a problem....
I have product model with the named_scopes: "active" and "for_sale"
In my controller i do something like:
product = Product.active.for_sale
And i want to test it with Remarkable....
I was trying to do something like:
expects :ative, :for_sale, :on => Product, :returns => mock_product
or
expects :ative, :with => :for_sale, :on => Product, :returns =>
mock_product
but does not work....
Any ideas of what do i need to do?
[]'s