Displaying 1 result from an estimated 1 matches for "ordered_day_names".
2010 May 07
2
Rspec beta8: helper methods issues
...'t find any documentation or solution to those issues:
1) the generator rails g rspec:helper does nothing;
2) there seems to be no way to test helper methods as I used to do...
for example
the following spec
it ''should set monday as first day of the week'' do
helper.ordered_day_names.first.should == ''Lun''
end
raises the error undefined local variable or method `helper'' for
#<Rspec::Core::ExampleGroup::Nested_2::Nested_1:0x2da5d10>
3) testing views where I call helper methods I need to explicitly stub
out the helper methods, even if I include...