Sha256: d414df8966540050b5e6ecc5f07557890ceb0dd4e80225b4a532b1145329eca2
Contents?: true
Size: 480 Bytes
Versions: 10
Compression:
Stored size: 480 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe RTurk::Requester do before(:all) do FakeWeb.clean_registry aws = YAML.load(File.open(File.join(SPEC_ROOT, 'mturk.yml'))) RTurk.setup(aws['AWSAccessKeyId'], aws['AWSAccessKey'], :sandbox => true) end it "should send the request to Amazon" do RestClient.should_receive(:get).with(/amazonaws.*Operation=GetHIT.*$/) RTurk::Requester.request(:Operation => 'GetHIT', 'HITId' => 'test') end end
Version data entries
10 entries across 10 versions & 1 rubygems