jasmine-headless-webkit/spec/bin/jasmine-headless-webkit_spec.rb
2011-05-11 10:17:27 -04:00

26 lines
682 B
Ruby

require 'spec_helper'
describe "jasmine-headless-webkit" do
describe 'success' do
it "should succeed with error code 0" do
%x{bin/jasmine-headless-webkit -j 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 -j 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 -j spec/jasmine/console_log/console_log.yml}
$?.exitstatus.should == 2
end
end
end