Sha256: 0ec8f7fe873ec924dcf2dc6aea6c72352145ba5cd9607ab858adfef187bb2d96

Contents?: true

Size: 657 Bytes

Versions: 44

Compression:

Stored size: 657 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class QueueMe
  include Refinery::Configurable
  include Refinery::Queueable
end

class QueueableTest < Test::Unit::TestCase
  context "a class with the Queuable module" do
    should "provide a queue" do
      setup_default_config
      
      queue = stub('queue')
      queue_provider = stub('queue provider')
      queue_provider.expects(:queue).with('a_queue').returns(queue)
      RightAws::SqsGen2.expects(:new).with(
        'aki', 'sak', {:multi_thread => true}
      ).returns(queue_provider)
      
      queueable = QueueMe.new
      assert_not_nil queueable.queue('a_queue')
    end
  end
end

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
aeden-refinery-0.10.0 test/unit/queueable_test.rb
aeden-refinery-0.10.1 test/unit/queueable_test.rb
aeden-refinery-0.10.2 test/unit/queueable_test.rb
aeden-refinery-0.10.3 test/unit/queueable_test.rb
aeden-refinery-0.10.5 test/unit/queueable_test.rb
aeden-refinery-0.10.6 test/unit/queueable_test.rb
aeden-refinery-0.10.8 test/unit/queueable_test.rb
aeden-refinery-0.9.1 test/unit/queueable_test.rb
aeden-refinery-0.9.10 test/unit/queueable_test.rb
aeden-refinery-0.9.11 test/unit/queueable_test.rb
aeden-refinery-0.9.12 test/unit/queueable_test.rb
aeden-refinery-0.9.13 test/unit/queueable_test.rb
aeden-refinery-0.9.14 test/unit/queueable_test.rb
aeden-refinery-0.9.15 test/unit/queueable_test.rb
aeden-refinery-0.9.2 test/unit/queueable_test.rb
aeden-refinery-0.9.4 test/unit/queueable_test.rb
aeden-refinery-0.9.5 test/unit/queueable_test.rb
aeden-refinery-0.9.6 test/unit/queueable_test.rb
aeden-refinery-0.9.7 test/unit/queueable_test.rb
aeden-refinery-0.9.8 test/unit/queueable_test.rb