Sha256: c82f2154c340fd543a53b4f116371c13f879ba3a9048d1bd47f195a0e4ddc02f
Contents?: true
Size: 853 Bytes
Versions: 1
Compression:
Stored size: 853 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper')) describe RTurk::RegisterHITType do before(:all) do aws = YAML.load(File.open(File.join(SPEC_ROOT, 'mturk.yml'))) RTurk.setup(aws['AWSAccessKeyId'], aws['AWSAccessKey'], :sandbox => true) FakeWeb.clean_registry faker('register_hit_type', :operation => "RegisterHITType") end it "should rerturn a CreateHITResponse after the request" do response = RTurk::RegisterHITType(:title => "Look at some pictures from 4Chan") do |hit| hit.assignments = 5 hit.description = "foo" hit.question("http://mpercival.com", :test => 'b') hit.reward = 0.05 hit.qualifications.add(:adult, true) end response.is_a?(RTurk::RegisterHITTypeResponse).should be_true response.type_id.should == 'KZ3GKTRXBWGYX8WXBW60' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rturk-2.0.3 | spec/operations/register_hit_type_spec.rb |