bbc / wraith

Wraith — A responsive screenshot comparison tool

Home Page:http://bbc-news.github.io/wraith/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failures on included tests

kentr opened this issue · comments

When I run bundle exec rspec on v4.0.0, I get the following failures. Is this expected?

Failures:

  1) Wraith When hooking into before_capture (CasperJS) Executes the global JS before capturing
     Failure/Error: expect(diff).to eq "0.0"

       expected: "0.0"
            got: "invalid"

       (compared using ==)
     # ./spec/before_capture_spec.rb:10:in `run_js_then_capture'
     # ./spec/before_capture_spec.rb:50:in `block (3 levels) in <top (required)>'

  2) Wraith When hooking into before_capture (CasperJS) Executes the path-level JS before capturing
     Failure/Error: expect(diff).to eq "0.0"

       expected: "0.0"
            got: "invalid"

       (compared using ==)
     # ./spec/before_capture_spec.rb:10:in `run_js_then_capture'
     # ./spec/before_capture_spec.rb:59:in `block (3 levels) in <top (required)>'

  3) Wraith When hooking into before_capture (CasperJS) Executes the global JS before the path-level JS
     Failure/Error: expect(diff).to eq "0.0"

       expected: "0.0"
            got: "invalid"

       (compared using ==)
     # ./spec/before_capture_spec.rb:10:in `run_js_then_capture'
     # ./spec/before_capture_spec.rb:68:in `block (3 levels) in <top (required)>'

Finished in 1 minute 0.99 seconds (files took 0.21731 seconds to load)
56 examples, 3 failures

Failed examples:

rspec ./spec/before_capture_spec.rb:49 # Wraith When hooking into before_capture (CasperJS) Executes the global JS before capturing
rspec ./spec/before_capture_spec.rb:58 # Wraith When hooking into before_capture (CasperJS) Executes the path-level JS before capturing
rspec ./spec/before_capture_spec.rb:67 # Wraith When hooking into before_capture (CasperJS) Executes the global JS before the path-level JS

I get the same thing. Is there something we need to configure to run these tests locally?