spec/async_sender_spec.rb in quebert-1.0.1 vs spec/async_sender_spec.rb in quebert-1.0.2
- old
+ new
@@ -1,6 +1,6 @@
-require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
+require 'spec_helper'
describe AsyncSender::Class do
before(:all) do
@q = Quebert::Backend::InProcess.new
@@ -29,10 +29,10 @@
@q.reserve.perform.should eql(Greeter.send(:hi, 'Jeannette'))
end
it "should async send instance methods" do
Greeter.new("brad").async_send(:hi, 'stunning')
- @q.reserve.perform.should eql(Greeter.new("brad").send(:hi, 'stunning'))
+ @q.reserve.perform.should eql(Greeter.new("brad").hi('stunning'))
end
end
describe AsyncSender::ActiveRecord do
\ No newline at end of file