Sha256: 2fb3cecbbad867c35f48049a97afc64c81409a6582a2ba6a8fe75cebe2f7b2f8
Contents?: true
Size: 702 Bytes
Versions: 1
Compression:
Stored size: 702 Bytes
Contents
require 'spec_helper' describe Marver::StoryFinder do describe '#find' do before :each do Time.stub_chain(:now, :to_i, :to_s).and_return "1" stub_get("http://gateway.marvel.com/v1/public/stories?apikey=pub_key&hash=3d4ce88a477c7e4a5accbf6cd2c8b819&name=Cover%20%23892&ts=1").to_return(:body => fixture('story.json'), :headers => {:content_type => 'application/json; charset=utf-8'}) Marver.configure do |config| config.public_key = 'pub_key' config.private_key = 'priv_key' end end it 'builds a Story out of the received json' do expect(Marver::StoryFinder.new.find({ name: 'Cover #892' })).to be_kind_of(Marver::Story) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
marver-0.0.6 | spec/marver/finders/story_finder_spec.rb |