test/backgrounded_test.rb in backgrounded-0.7.0 vs test/backgrounded_test.rb in backgrounded-0.7.1

- old
+ new

@@ -67,13 +67,16 @@ should 'save backgrounded options for method' do assert_not_nil User.backgrounded_options[:do_stuff] end context 'executing backgrounded method' do setup do - @user.expects(:do_stuff) - @user.do_stuff_backgrounded + @user.expects(:do_stuff).returns(true) + @result = @user.do_stuff_backgrounded end should "execute method in background" do end #see expectations + should 'return nil for backgrounded method' do + assert_nil @result + end end end context 'an object with a backgrounded method that accepts parameters' do setup do