diff --git a/spec/bin/jasmine-headless-webkit_spec.rb b/spec/bin/jasmine-headless-webkit_spec.rb index d079c93..ebe627d 100644 --- a/spec/bin/jasmine-headless-webkit_spec.rb +++ b/spec/bin/jasmine-headless-webkit_spec.rb @@ -72,9 +72,9 @@ describe "jasmine-headless-webkit" do describe 'tries to click a button' do it "should not leave the page nor loop" do system %{bin/jasmine-headless-webkit -j spec/jasmine/click_button/click_button.yml --report #{report}} - $?.exitstatus.should == 1 + $?.exitstatus.should == 0 - report.should be_a_report_containing(2, 0, false) + report.should be_a_report_containing(0, 0, false) end end diff --git a/spec/jasmine/click_button/click_button.js b/spec/jasmine/click_button/click_button.js index 6c2afd0..628dae2 100644 --- a/spec/jasmine/click_button/click_button.js +++ b/spec/jasmine/click_button/click_button.js @@ -1,5 +1,5 @@ function yes() { - $('body').append('