spec/integration_spec.rb in resque-bus-0.3.7 vs spec/integration_spec.rb in resque-bus-0.5.7
- old
+ new
@@ -1,8 +1,8 @@
require 'spec_helper'
-module ResqueBus
+module QueueBus
describe "Integration" do
it "should round trip attributes" do
write1 = Subscription.new("default", "key1", "MyClass1", {"bus_event_type" => "event_one"})
write2 = Subscription.new("else_ok", "key2", "MyClass2", {"bus_event_type" => /^[ab]here/}) #regex
@@ -21,10 +21,10 @@
write.add(write2)
app = Application.new("test")
app.subscribe(write)
- ResqueBus.send(:reset) # reset to make sure we read from redis
+ reset_test_adapter # reset to make sure we read from redis
app = Application.new("test")
read = app.send(:subscriptions)
read.size.should == 2
read1 = read.key("key1")
\ No newline at end of file