jasmine-headless-webkit/spec/integration/specify_runner_file_spec.rb
2011-11-29 10:56:02 -05:00

23 lines
548 B
Ruby

require 'spec_helper'
describe 'specify runner in jasmine.yml' do
before do
File.unlink "spec/temp_out.html" if File.file?('spec/temp_out.html')
end
it 'should randomize the run order' do
output = %x{bin/jasmine-headless-webkit -j spec/jasmine/runner_out_in_jasmine_yml/jasmine.yml}
$?.exitstatus.should == 2
output.should include("made it")
output.should include("1 test")
"spec/temp_out.html".should be_a_file
end
after do
File.unlink "spec/temp_out.html" if File.file?('spec/temp_out.html')
end
end