Sha256: 361ecae9b4dfa9d446f9af8691d40b1c11fbf9ed471abc1505934f1555903cc0
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
require "test_helper" describe "QuakeliveApi::Profile::Awards::MadSkillz" do make_my_diffs_pretty! before do profile = "dummy" content = fixture_awards('mad_skillz') stub_request(:get, "#{QuakeliveApi.site}/profile/awards/#{profile}/2").to_return(content) @awards = QuakeliveApi::Profile::Awards::MadSkillz.new(profile) end describe "earned" do subject { @awards.earned } its(:size){ must_equal 21 } it { subject.must_be_instance_of Array } it { subject.must_include QuakeliveApi::Items::Award.new( 'http://cdn.quakelive.com/web/2013071600/images/awards/md/psychic_v2013071600.0.png', 'You\'re either lucky or good.', 'Psychic', Date.parse('16-07-2009'), 'Use a rocket to kill an opponent who is in the air.') } end describe "unearned" do subject { @awards.unearned } its(:size){ must_equal 22 } it { subject.must_be_instance_of Array } it { subject.must_include QuakeliveApi::Items::Award.new( 'http://cdn.quakelive.com/web/2013071600/images/awards/md/forcing_the_city_gates_v2013071600.0.png', nil, 'Forcing the City Gates', nil, 'Score at least 5 frags in a round in Red Rover.') } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quakelive_api-0.0.1 | test/quakelive_api/profile/awards/mad_skillz_test.rb |