Sha256: a448ad38991b9315d815158f4fdd28a14715492a9a5d6b2d28263959d22e7393

Contents?: true

Size: 339 Bytes

Versions: 4

Compression:

Stored size: 339 Bytes

Contents

require File.join(File.dirname(__FILE__) + "/..","bdrb_test_helper")

context "Result storage" do
  setup do
    @cache = BackgrounDRb::ResultStorage.new(:some_worker,:crap)
  end

  specify "should store result" do
    @cache[:foo] = "Wow"
    @cache[:foo].should == "Wow"
    @cache.delete(:foo)
    @cache[:foo].should == nil
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
backgroundrb-rails3-1.1.3 test/server/test_result_storage.rb
backgroundrb-rails3-1.1.2 test/server/test_result_storage.rb
backgroundrb-rails3-1.1.1 test/server/test_result_storage.rb
backgroundrb-rails3-1.1 test/server/test_result_storage.rb