Move test helper methods inside the describe block

openid
Marcin Kulik 12 years ago
parent 92a09476e8
commit a96c5e381b

@ -8,6 +8,8 @@ def uploaded_file(path, type)
) )
end end
describe 'Asciicast', :type => :feature, :js => true do
def load_asciicast(id) def load_asciicast(id)
FactoryGirl.create( FactoryGirl.create(
:asciicast, :asciicast,
@ -39,8 +41,6 @@ def inject_on_finished_callback
EOS EOS
end end
describe 'Asciicast', :type => :feature, :js => true do
Dir['spec/fixtures/asciicasts/*'].each do |dir| Dir['spec/fixtures/asciicasts/*'].each do |dir|
id = dir[/\d+/] id = dir[/\d+/]

Loading…
Cancel
Save