spec/lib/stew/community/profile_spec.rb in stew-0.5.3 vs spec/lib/stew/community/profile_spec.rb in stew-0.6.0

- old
+ new

@@ -1,15 +1,15 @@ require 'spec_helper' describe "Stew::Community::Profile" do let(:id){76561197992917668} - let(:response){YAML.load_file('spec/fixtures/profiles/76561197992917668.yml')['profile']} + let(:response){YAML.load_file('spec/fixtures/profiles/76561197992917668.json')['response']['players'].first} subject{Stew::Community::Profile.new(response)} describe "attributes" do it "sets the id" do - subject.id.should eq id + subject.id.should eq id end it "sets the nickname" do subject.nickname.should eq 'MrCheese' end \ No newline at end of file