root/trunk/test/server/test_result_storage.rb
| Revision 326, 339 bytes (checked in by gethema..@gmail.com, 6 months ago) |
|---|
| Line | |
|---|---|
| 1 | require File.join(File.dirname(__FILE__) + "/..","bdrb_test_helper") |
| 2 | |
| 3 | context "Result storage" do |
| 4 | setup do |
| 5 | @cache = BackgrounDRb::ResultStorage.new(:some_worker,:crap) |
| 6 | end |
| 7 | |
| 8 | specify "should store result" do |
| 9 | @cache[:foo] = "Wow" |
| 10 | @cache[:foo].should == "Wow" |
| 11 | @cache.delete(:foo) |
| 12 | @cache[:foo].should == nil |
| 13 | end |
| 14 | end |
Note: See TracBrowser for help on using the browser.
