Refactor spec clean up
This commit is contained in:
parent
27550fd14e
commit
abb7b07c89
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user