12 lines
249 B
Ruby
12 lines
249 B
Ruby
require 'spec_helper'
|
|
|
|
describe HomeController do
|
|
describe 'GET index' do
|
|
it 'assigns all playlists as @playlists' do
|
|
playlist = Factory.create(:playlist)
|
|
get :index
|
|
assigns[:playlists].should == [playlist]
|
|
end
|
|
end
|
|
end
|