Skip to content

Instantly share code, notes, and snippets.

test "new user form exists" do
# Verify the form exists correctly.
get :new
assert_response :success
assert_select 'form#new_user'
assert_select 'input#username'
assert_select 'input#password1'
assert_select 'input#password2'
assert_select 'input#email'
end
describe "references" do
it "should handle complex transitions" do
@vegetable.foods.count.should == 0
@fruit.foods.count.should == 0
@onion.category.should be_nil
@vegetable.foods << @onion
static int getDoubleFromObject(redisClient *c, robj *o, double *value) {
double parsedValue;
char *eptr = NULL;
if (o && o->type != REDIS_STRING) {
addReplySds(c,sdsnew("-ERR value is not a double\r\n"));
return REDIS_ERR;
}
if (o == NULL)
#199 Multi bulk request not followed by bulk args PASSED
#200 Generic wrong number of args PASSED
#201 SELECT an out of range DB PASSED
#202 Check consistency of different data types after a reload PASSED
#203 Same dataset digest if saving/reloading as AOF?
Waiting for background AOF rewrite to finish... PASSED
#204 EXPIRES after a reload (snapshot + append only file)
Waiting for background AOF rewrite to finish... PASSED
#205 PIPELINING stresser (also a regression for the old epoll bug) PASSED
#206 MUTLI / EXEC basics PASSED
[amchale@iMac ~/Dropbox/Projects/redis *parameter-validation]$ ./redis-cli rpush mylist 2
(integer) 2
[amchale@iMac ~/Dropbox/Projects/redis *parameter-validation]$ ./redis-cli incr mylist
(error) ERR value is not an integer
- (void) initiateHash
{
NSString *md5f = @"md5 %@ ; e=$?; if [ $e -eq 127 ]; then exec md5sum %@; else exit $e; fi";
NSString *pat = [file escapedRelativePath];
NSString *md5Cmd = [NSString stringWithFormat:md5f, pat, pat];
self.dispatcher = [[CommandDispatcher alloc] initWithProject:project session:session command:md5Cmd];
[dispatcher release];
state = SS_CONTINUE_HASH;
import java.util.Enumeration;
import com.jacob.activeX.ActiveXComponent;
import com.jacob.com.ComThread;
import com.jacob.com.EnumVariant;
import com.jacob.com.Variant;
// http://stackoverflow.com/questions/1986732/how-to-get-a-unique-computer-identifier-in-java-like-disk-id-or-motherboard-id
public class Test {
public static void main(String[] args) {
[alexmchale@faust rvm:1.8.7 ~]
$ rvm use ruby-1.9.2-head
info: Using ruby 1.9.2 head
[alexmchale@faust rvm:1.9.2 ~]
$ rvm use rails3
info: Using ruby 1.9.2 head with gemset rails3
begin
require 'rake'
rescue LoadError
begin
require 'rubygems'
rescue LoadError
end
require 'rake'
end
#!/bin/sh
for ((i=0; $i<=100; i=$(($i+1)))); do
curl http://localhost:8081 > /dev/null 2>&1 &
done