Sha256: af37f3dd7f5f75d69c28d655dd53d55e945464e9d7d4cd8cdb2f2f6be9d40b7b

Contents?: true

Size: 437 Bytes

Versions: 10

Compression:

Stored size: 437 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))


describe RTurk::GetHIT do

  before(:all) do
    faker('get_hit', :operation => 'GetHIT')
  end

  it "should fetch the details of a HIT" do
    response = RTurk.GetHIT(:hit_id => '1234abcd')
    response.type_id.should eql('YGKZ2W5X6YFZ08ZRXXZZ')
    response.auto_approval_delay.should eql(3600)
    response.status.should eql('Reviewable')
  end


end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rturk-2.3.2 spec/operations/get_hit_spec.rb
rturk-2.3.1 spec/operations/get_hit_spec.rb
rturk-2.3.0 spec/operations/get_hit_spec.rb
rturk-2.2.1 spec/operations/get_hit_spec.rb
rturk-2.2.0 spec/operations/get_hit_spec.rb
rturk-2.1.1 spec/operations/get_hit_spec.rb
rturk-2.1.0 spec/operations/get_hit_spec.rb
rturk-2.0.5 spec/operations/get_hit_spec.rb
rturk-2.0.4 spec/operations/get_hit_spec.rb
rturk-2.0.3 spec/operations/get_hit_spec.rb