Sha256: 792bf1f354445ac5dd7107000db2f926e0cf5d3a512447517e52e9dfd07cadc0

Contents?: true

Size: 766 Bytes

Versions: 1

Compression:

Stored size: 766 Bytes

Contents

require 'helper'

class TestAnswers < Test::Unit::TestCase
  describe Answers do
    before(:all) do
      set_api_key
    end
    
    it "retrieve_by_id" do
      answers = Answers.retrieve_by_id 952594, single_item_set
      check_answer_set answers
    end
    
    it "retrieve_by_user" do
      answers = Answers.retrieve_by_user 53587, single_item_set
      check_answer_set answers
    end
    
    it "retrieve_by_question" do
      answers = Answers.retrieve_by_question 1104543, single_item_set
      check_answer_set answers
    end
    
    it "get_next_set" do
      answers = Answers.retrieve_by_question 1104543, single_item_set
      answers = answers.get_next_set
      check_answer_set answers
      answers.page.should == 2
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyoverflow-1.0.2 test/test_answers.rb