Hi,
It might sound strange, but you usually stub Time.now
Read here: http://ariejan.net/2008/11/05/rspecing-with-timenow/
Am 09.10.2010 um 02:20 schrieb Russell Quinn:
> I have the following in my fixtures:
>
> publish_date: <%= DateTime.now.utc - 1.day %>
>
> But 'DateTime.now.utc' always eva
Hi,
uhmmm 'project'.should be('product')
Am 30.01.2009 um 15:10 schrieb Peter Fitzgibbons:
Hi all,
I'm missing something basic here.
Inside ./features/support/paths.rb I want to use a
ActionController::Resources helper for Products as mapped in routes.rb
./routes.rb
map.resource :produc
Hi Phlip,
Are you sure it's inherit and not extend?
Second, I guess the missing trace is cuz you should
put a 'before' block into the describe.
Took me some time to figure that out last month...
so try this and let us know the results:
describe 'Post' do
before do
extend FixtureDependenci
Am 14.03.2009 um 14:12 schrieb Zhenning Guan:
= flash_messages
- @user = User.find(1)
move that to the controller or a helper. always.
and if you try to find the admin with that, add a flag on the user
so you can write current_user.admin?
> - @forum.each do |f|
> .group
> = link_to f.