Skip to content

Commit

Permalink
Test whether the DataFabric.activate_shard returns the result of the …
Browse files Browse the repository at this point in the history
…block.
  • Loading branch information
FooBarWidget committed Jul 17, 2008
1 parent 99e8240 commit 079aa69
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/shard_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,11 @@ def test_activations_can_be_nested
DataFabric.active_shard(:name)
end
end

def test_activate_shard_returns_result_of_block
result = DataFabric.activate_shard(:gundam => 'Exia') do
1234
end
assert_equal 1234, result
end
end

0 comments on commit 079aa69

Please sign in to comment.