Skip to content

Commit

Permalink
Added a fix to force SQS to use string names for the queue name.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbalatero committed Jun 6, 2009
1 parent 7a61b6e commit 8afee65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/queue_stick/sqs_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize
:signature_version => '1')

# Create the queue if it doesn't exist
@sqs_queue = @sqs.queue(self.class.queue_name, true)
@sqs_queue = @sqs.queue(self.class.queue_name.to_s, true)
end

def delete_message_from_queue(message)
Expand Down
2 changes: 1 addition & 1 deletion spec/queue_stick/sqs_worker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@queue = mock('sqs_queue', :null_object => true)
@sqs = mock('sqs_gen2', :null_object => true)
@sqs.should_receive(:queue).with(:my_test_queue, true).and_return(@queue)
@sqs.should_receive(:queue).with('my_test_queue', true).and_return(@queue)
RightAws::SqsGen2.should_receive(:new).and_return(@sqs)
@worker = QueueStick::SQSWorker.new
end
Expand Down

0 comments on commit 8afee65

Please sign in to comment.