jasmine-headless-webkit/spec/bin/jasmine-headless-webkit_spec.rb

26 lines
673 B
Ruby
Raw Normal View History

require 'spec_helper'
describe "jasmine-headless-webkit" do
describe 'success' do
it "should succeed with error code 0" do
%x{bin/jasmine-headless-webkit spec/jasmine/success/success.yml}
$?.exitstatus.should == 0
end
end
describe 'failure' do
it "should fail with an error code of 1" do
%x{bin/jasmine-headless-webkit spec/jasmine/failure/failure.yml}
$?.exitstatus.should == 1
end
end
describe 'with console.log' do
it "should succeed, but has a console.log so an error code of 2" do
%x{bin/jasmine-headless-webkit spec/jasmine/console_log/console_log.yml}
$?.exitstatus.should == 2
end
end
end