twitter/cassandra — pull request #158 by jarib (2012-08-10 13:18:17+00:00)
Title: Fixes for Ruby 1.8

Hi,

I'm quite new to cassandra, at it looks like I unfortunately will need to make this run on 1.8.

I fixed a few syntax errors (trailing commas) + test failures. I have two tests left failing, probably due to unordered Hashes on 1.8:

```
Loaded suite /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_test_loader
Started
................................FF.........................................................................................................................................................................
Finished in 147.524841 seconds.

1) Failure:
test_get_indexed_slices(CassandraMockTest) [/Users/fijabakk/src/git/cassandra-twitter/test/cassandra_test.rb:842]:
<"row_c_2"> expected but was
<"row_c_4">.

2) Failure:
test_get_indexed_slices_with_IndexClause_objects(CassandraMockTest) [/Users/fijabakk/src/git/cassandra-twitter/test/cassandra_test.rb:953]:
<"row_c_2"> expected but was
<"row_c_4">.

203 tests, 1042 assertions, 2 failures, 0 errors
rake aborted!
Command failed with status (1): [/System/Library/Frameworks/Ruby.framework/...]
```

I'm not familiar enough with the Cassandra or the API to fix these though.