Sha256: 78f7cc381dde701773c4acc057e453477c000d2f4d35ed335e226c50fdb9d7e5
Contents?: true
Size: 960 Bytes
Versions: 1
Compression:
Stored size: 960 Bytes
Contents
require 'spec_helper' describe "Community Access through the Web API", :vcr do describe "Creation of a steam profile with data" do subject{Stew::Community::SteamId.new(76561197992917668)} describe "profile" do it "sets the nickname" do subject.profile.nickname.should eq 'MrCheese' end end describe "games" do it "creates games" do subject.games.collect(&:name).include?('Shank').should be_true subject.games.collect(&:app_id).include?(17460).should be_true end end describe "friends" do it "creates friends" do subject.friends.collect(&:id).include?(76561197972211787).should be_true end end end describe "Attempted creation of a non-existing Steam ID" do it "raises a Stew::XmlClient::ObjectNotFoundError" do expect{Stew::Community::SteamId.new("www.google.com/nisse")}.to raise_error(Stew::Community::SteamIdNotFoundError) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stew-0.6.0 | spec/integration/community_web_api_integration_spec.rb |