Skip to content
This repository has been archived by the owner on Sep 4, 2018. It is now read-only.

rspec fails on XActivatePowerMode #435

Open
mralexgray opened this issue Dec 14, 2015 · 2 comments
Open

rspec fails on XActivatePowerMode #435

mralexgray opened this issue Dec 14, 2015 · 2 comments

Comments

@mralexgray
Copy link
Contributor

rspec is choking on (the valid) Image URL https://camo.githubusercontent.com/a25916ccc96abf4f949ae55a3fc8b0108ac578a8/687474703a2f2f3764396f30782e636f6d312e7a302e676c622e636c6f7564646e2e636f6d2f584163746976617465506f7765724d6f6465707265766965772e676966 simply because it doesn't "end with" an image extension as defied in the spec.

......F

Failures:

  1) Packages should have valid URLs for screenshots if they are present
     Failure/Error: valid_image_formats.should include package['screenshot'].split('.').last
       expected ["png", "jpg", "jpeg", "bmp", "gif"] to include "com/a25916ccc96abf4f949ae55a3fc8b0108ac578a8/687474703a2f2f3764396f30782e636f6d312e7a302e676c622e636c6f7564646e2e636f6d2f584163746976617465506f7765724d6f6465707265766965772e676966"
     # ./spec/packages_spec.rb:55:in `block (3 levels) in <top (required)>'
     # ./spec/packages_spec.rb:53:in `each'
     # ./spec/packages_spec.rb:53:in `block (2 levels) in <top (required)>'

Finished in 0.11198 seconds (files took 0.22889 seconds to load)
7 examples, 1 failure

Failed examples:

rspec ./spec/packages_spec.rb:51 # Packages should have valid URLs for screenshots if they are present

Image

@jurre
Copy link
Collaborator

jurre commented Dec 14, 2015

I'm open to suggestions on how to improve the spec

@mralexgray
Copy link
Contributor Author

i wish I knew more about specs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants