search for: ruyasan

Displaying 3 results from an estimated 3 matches for "ruyasan".

Did you mean: rtasan
2007 May 17
4
How to mock helpers in view specs ?
Hi all, I am mocking the following Rails view (inside a partial): <%= render :partial => "forums/forum", :collection => forum_category.forums.readable_by(current_user? ? current_user : nil) %> My spec fails with the following message: 1) ActionView::TemplateError in ''forum_categories/index (anonymous user) should only render forums accessible to anonymous
2007 May 24
9
Mocking, changing method interfaces and integration tests
Suppose we have a method ''foo'' which internally uses another method ''bar''. Being good BDDers we mock out the ''bar'' method. After all, we only want to spec the ''foo'' method - actually running the ''bar'' method means slower, less maintainable and brittler specs. That''s why we <3 mocking,
2005 Sep 12
1
<!--[form:modelname]--> <!--[eoform:modelname]--> what, if anything does this do?
It looks important and I''m too scared to remove it. The boys on IRC are saying it doesn''t do anything. Confirm/deny.