Permalink
Browse files

Remove TODO

Looks like the integration tests broke under Rails 2.1.  Fixed.
  • Loading branch information...
1 parent 1d1957d commit b6e2e9a721bf30e3351711ff0d4a1e5c138b563a @mperham mperham committed Sep 2, 2008
Showing with 7 additions and 6 deletions.
  1. +0 −1 TODO
  2. +7 −5 example/test/integration/account_figments_test.rb
View
@@ -1 +0,0 @@
-Process or Documentation for how to migrate existing data to shards
@@ -10,7 +10,7 @@ def test_create_account_and_figments
assert_equal 0, conn0.count_for('figments')
assert_equal 0, conn1.count_for('figments')
- new_session do |user|
+ new_session(0) do |user|
user.goes_home
mike = user.creates_account('mike', '0')
user.selects_account(mike)
@@ -25,7 +25,7 @@ def test_create_account_and_figments
assert_equal 1, conn0.count_for('figments')
assert_equal 0, conn1.count_for('figments')
- new_session do |user|
+ new_session(1) do |user|
user.goes_home
bob = user.creates_account('bob', '1')
user.selects_account(bob)
@@ -54,10 +54,12 @@ def conn.clear(table)
conn
end
- def new_session
+ def new_session(shard)
open_session do |sess|
- sess.extend(Operations)
- yield sess if block_given?
+ DataFabric.activate_shard :shard => shard do
+ sess.extend(Operations)
+ yield sess if block_given?
+ end
end
end

0 comments on commit b6e2e9a

Please sign in to comment.