Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 285b819611
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (28 sloc) 0.819 kb
require 'helper'
context "Album" do
fixtures do
@artist = Play::Artist.create(:name => "Justice")
@album = Album.create(:name => 'Cross', :artist => @artist)
@song = Play::Song.create(:title => "Stress",
:artist => @artist,
:album => @album,
:path => "/tmp/music/song.mp3")
@user = User.create
end
test "enqueueing songs" do
Song.any_instance.expects(:enqueue!).with(@user).times(1)
@album.enqueue!(@user)
end
test "path" do
assert_equal "/tmp/music", @album.path
end
test "zipped!" do
assert @album.respond_to?(:zipped!)
end
test "zip_name" do
assert @album.zip_name =~ /Justice/
end
test "zip_path" do
assert @album.zip_path =~ /\.zip$/
end
end
Jump to Line
Something went wrong with that request. Please try again.