Sha256: 47414dee4a087d68dea3768ab6832040aa04602367c67b4369abb2bcd4afe4c9
Contents?: true
Size: 600 Bytes
Versions: 2
Compression:
Stored size: 600 Bytes
Contents
require 'spec_helper' describe TheGamesDB::Image::Banner do before do game_xml = SpecRoot.join 'fixtures', 'game.xml' TheGamesDB::Feed.stubs(:fetch).returns(game_xml.read) end let(:game) { TheGamesDB::Game.find 140 } let(:banner) { game.banners.first } it 'is parsed correctly' do banner.width.should == 760 banner.height.should == 140 banner.path.should == "graphical/140-g.jpg" end context '#url' do it 'is composed of the base image url and the path' do banner.url.should == 'http://thegamesdb.net/banners/graphical/140-g.jpg' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
the_games_db-0.1.0 | spec/the_games_db/image/banner_spec.rb |
the_games_db-0.0.1 | spec/the_games_db/image/banner_spec.rb |