Use one-liners in specs where possible

This commit is contained in:
Thibault Jouan
2014-04-01 18:32:22 +00:00
parent 4cef7aeab9
commit 0c7bf69ba2
22 changed files with 35 additions and 103 deletions

View File

@@ -2,12 +2,8 @@ require 'spec_helper'
describe 'home/index' do
before do
assign :playlists, [
mock_model(Playlist, name: 'Electro')
]
assign :tracks, [
mock_model(Track, name: 'Mega song')
]
assign :playlists, [mock_model(Playlist, name: 'Electro')]
assign :tracks, [mock_model(Track, name: 'Mega song')]
end
it 'displays a list of playlists' do