Sha256: 87cd1eda659c3d21691566fd0ff727e86ed425b61f85c91fad2a3433fde73a01

Contents?: true

Size: 659 Bytes

Versions: 1

Compression:

Stored size: 659 Bytes

Contents

require 'helper'

class TestBadges < Test::Unit::TestCase
  describe Badges do
    before(:all) do
      @users = Users.retrieve_all
      set_api_key
    end
    
    it 'retrieve_all' do
      badges = Badges.retrieve_all
      check_badge_set badges
    end
    
    it 'retrieve_all_non_tag_based' do
      badges = Badges.retrieve_all_non_tag_based
      check_badge_set badges
    end
    
    it 'retrieve_all_tag_based' do
      badges = Badges.retrieve_all_tag_based
      check_badge_set badges
    end
    
    it 'retrieve_by_user' do
      badges = Badges.retrieve_by_user @users.users.first.user_id
      check_badge_set badges
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyoverflow-1.0.2 test/test_badges.rb