Sha256: c2758b9e0e7eafdfb50a1ea1d5e0c056e94be4ec504eb3604b35dce8232b31c6
Contents?: true
Size: 772 Bytes
Versions: 4
Compression:
Stored size: 772 Bytes
Contents
require "spec_helper" require "./lib/spot/album" describe SpotContainer::Album do before(:each) do @album = SpotContainer::Album.new(JSON.load(File.read("spec/fixtures/album.json"))["albums"].first) end it "should have an artist" do @album.artist.should be_instance_of(SpotContainer::Artist) end it "should inherit from base" do @album.class.ancestors.should include(SpotContainer::Base) end context "the available? method" do it "should contain the AG territory" do @album.should be_available("AG") end it "should not contain the RANDOM territory" do @album.should_not be_available("RANDOM") end end it "should have a working to string method" do @album.to_s.should eq(@album.name) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spot-0.1.4 | spec/album_spec.rb |
spot-0.1.3 | spec/album_spec.rb |
spot-0.1.2 | spec/album_spec.rb |
spot-0.1.1 | spec/album_spec.rb |