Permalink
Browse files

Add specs for recipe resource

  • Loading branch information...
Brandon Tilley
Brandon Tilley committed May 9, 2012
1 parent 079f04c commit 2cbc1dbe82ea831cb128fd3abb668a616242af3a
Showing with 31 additions and 4 deletions.
  1. +28 −0 spec/fixtures/cassettes/recipe_27984.yml
  2. +3 −4 spec/integration/recipe_spec.rb
@@ -0,0 +1,28 @@
+---
+- !ruby/struct:VCR::HTTPInteraction
+ request: !ruby/struct:VCR::Request
+ method: :get
+ uri: http://us.battle.net:80/api/wow/recipe/27984
+ body:
+ headers:
+ response: !ruby/struct:VCR::Response
+ status: !ruby/struct:VCR::ResponseStatus
+ code: 200
+ message: OK
+ headers:
+ date:
+ - Wed, 09 May 2012 04:56:17 GMT
+ server:
+ - Apache
+ x-frame-options:
+ - SAMEORIGIN
+ content-language:
+ - en-US
+ content-length:
+ - '105'
+ vary:
+ - Accept-Encoding
+ content-type:
+ - application/json;charset=utf-8
+ body: ! '{"id":27984,"name":"Enchant Weapon - Mongoose","profession":"Enchanting","icon":"spell_holy_greaterheal"}'
+ http_version: '1.1'
@@ -4,10 +4,9 @@
let(:api) { Battlenet.new }
it "fetches recipe data" do
- VCR.use_cassette('recipe') do
- recipe = api.recipe '33994'
- recipe['name'].should == "Enchant Gloves - Precise Strikes"
- recipe['profession'].should == "Enchanting"
+ VCR.use_cassette('recipe_27984') do
+ recipe = api.recipe '27984'
+ recipe['name'].should == "Enchant Weapon - Mongoose"
end
end
end

0 comments on commit 2cbc1db

Please sign in to comment.