search for: expected_valu

Displaying 2 results from an estimated 2 matches for "expected_valu".

Did you mean: expected_value
2007 Jul 09
12
Mocking User.find( :all, :limit => 10 )
Hi, I''m trying to setup a mock for my controller test but I can''t get it to recognise the mock. I use it "should find all users" do User.should_receive(:find).with( :all, :limit => 10 ).and_return([@user]) do_get end and in the controller @users = User.find(:all, :limit => 10 ) But this does not work. It gives me User expected :find with (:all)
2006 May 01
6
[PATCH] Use stddef.h in Mini-OS to define size_t
...xtras/mini-os/include/os.h 2006-04-14 22:21:55.000000000 -0400 +++ nxen-3.0-testing/extras/mini-os/include/os.h 2006-04-28 13:39:13.000000000 -0400 @@ -7,9 +7,6 @@ #ifndef _OS_H_ #define _OS_H_ -#define NULL 0 - - #if __GNUC__ == 2 && __GNUC_MINOR__ < 96 #define __builtin_expect(x, expected_value) (x) #endif diff -ur oxen-3.0-testing/extras/mini-os/include/types.h nxen-3.0-testing/extras/mini-os/include/types.h --- oxen-3.0-testing/extras/mini-os/include/types.h 2006-04-14 22:21:55.000000000 -0400 +++ nxen-3.0-testing/extras/mini-os/include/types.h 2006-04-28 13:39:17.000000000 -0400 @@ -...