Sha256: e7b412c8f267a7a690b0c52228ae224a60646714367843b280a6ff531426b53d
Contents?: true
Size: 498 Bytes
Versions: 4
Compression:
Stored size: 498 Bytes
Contents
require "spec_helper" require "./lib/spot/artist" describe SpotContainer::Artist do before(:each) do @artist = SpotContainer::Artist.new(JSON.load(File.read("spec/fixtures/artist.json"))["artists"].first) end it "should always be valid" do @artist.should be_valid end it "should inherit from base" do @artist.class.ancestors.should include(SpotContainer::Base) end it "should have a working to string method" do @artist.to_s.should eq(@artist.name) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spot-0.1.4 | spec/artist_spec.rb |
spot-0.1.3 | spec/artist_spec.rb |
spot-0.1.2 | spec/artist_spec.rb |
spot-0.1.1 | spec/artist_spec.rb |