Skip to content

Commit

Permalink
Remove TODO
Browse files Browse the repository at this point in the history
Looks like the integration tests broke under Rails 2.1.  Fixed.
  • Loading branch information
mperham committed Sep 2, 2008
1 parent 1d1957d commit b6e2e9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 0 additions & 1 deletion TODO

This file was deleted.

12 changes: 7 additions & 5 deletions example/test/integration/account_figments_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit b6e2e9a

Please sign in to comment.