Sha256: bbd4962075d8c73545be2377e75a9c73a84ec1124aa4ae43b367448ea3146db9
Contents?: true
Size: 876 Bytes
Versions: 35
Compression:
Stored size: 876 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper')) describe RTurk::ForceExpireHIT do before(:all) do aws = YAML.load(File.open(File.join(SPEC_ROOT, 'mturk.yml'))) RTurk.setup(aws['AWSAccessKeyId'], aws['AWSAccessKey'], :sandbox => true) faker('force_expire_hit', :operation => 'ForceExpireHIT') end it "should ensure required params" do lambda{RTurk::ForceExpireHIT()}.should raise_error RTurk::MissingParameters end it "should successfully request the operation" do RTurk::Requester.should_receive(:request).once.with( hash_including('Operation' => 'ForceExpireHIT')) RTurk::ForceExpireHIT(:hit_id => "123456789") rescue RTurk::InvalidRequest end it "should parse and return the result" do RTurk::ForceExpireHIT(:hit_id => "123456789").should be_a_kind_of RTurk::Response end end
Version data entries
35 entries across 35 versions & 1 rubygems