Refactor spec clean up

This commit is contained in:
Thibault Jouan 2011-09-20 23:19:28 +00:00
parent 27550fd14e
commit abb7b07c89
3 changed files with 3 additions and 8 deletions

View File

@ -35,8 +35,4 @@ feature 'Tracks' do
page.should have_xpath "//audio[@src='#{sound_path(track.sound)}']" page.should have_xpath "//audio[@src='#{sound_path(track.sound)}']"
visit find('audio')[:src] visit find('audio')[:src]
end end
after do
`rm -f #{Rails.root}/data/sounds/*`
end
end end

View File

@ -39,8 +39,4 @@ describe Sound do
sound.mime_type.should == 'audio/mpeg' sound.mime_type.should == 'audio/mpeg'
end end
end end
after do
`rm -f #{Rails.root}/data/sounds/*`
end
end end

View File

@ -10,5 +10,8 @@ Spork.prefork do
RSpec.configure do |config| RSpec.configure do |config|
config.mock_with :rspec config.mock_with :rspec
config.use_transactional_fixtures = true config.use_transactional_fixtures = true
config.after(:all) do
`rm -f #{Rails.root}/data/sounds/*`
end
end end
end end