Re: [rspec-users] DateTime.now.utc in fixtures

2010-10-12 Thread Thomas R. Koll
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

Re: [rspec-users] Cucumber resource routes

2009-01-30 Thread Thomas R. Koll
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

Re: [rspec-users] undefined method `inherit' for Merb::Test::ExampleGroup

2009-02-01 Thread Thomas R. Koll
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

Re: [rspec-users] how to test this view with Rspec

2009-03-14 Thread Thomas R. Koll
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.