Displaying 1 result from an estimated 1 matches for "membershelper".
2007 Dec 11
3
can''t access helper methods for model testing
I would like to have some valid mock models readily available in the
helper module, but when I try to access the helper I get the error
saying that the method is not found.
=======
describe MembersHelper do # Helper methods can be called directly in the
examples (it blocks)
def valid_member_mock
member = mock_model(Member)
member.stub!(:first_name).and_return("Joe")
member.stub!(:last_name).and_return("Smith")
member.stub!(:email).and_return("joe at smith....