Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5 tests failing #2

Open
runephilosof opened this issue Jan 24, 2015 · 1 comment
Open

5 tests failing #2

runephilosof opened this issue Jan 24, 2015 · 1 comment
Assignees

Comments

@runephilosof
Copy link

In the Readme.md it says the tests are run with rake rspec, but it is either rake spec or rake test.
The result is:

F....F.FFF

Failures:

  1) Geoservice getting a catalog should have services
     Failure/Error: @nhss_shakemaps = @catalog["nhss_shakemaps"]
     NoMethodError:
       undefined method `[]' for nil:NilClass
     # ./lib/geoservices/service/catalog.rb:18:in `block in []'
     # ./lib/geoservices/service/catalog.rb:17:in `each'
     # ./lib/geoservices/service/catalog.rb:17:in `[]'
     # ./spec/geoservices/catalog_spec.rb:7:in `block (3 levels) in <top (required)>'

  2) Geoservice getting a feature service should be countable
     Failure/Error: expect(@service.count(0)["count"]).to eq(1374)

       expected: 1374
            got: 1376

       (compared using ==)
     # ./spec/geoservices/service_spec.rb:22:in `block (3 levels) in <top (required)>'

  3) Geoservice getting a map service should have a mapName
     Failure/Error: expect(@service.metadata["mapName"]).to eq("Layers")

       expected: "Layers"
            got: nil

       (compared using ==)
     # ./spec/geoservices/service_spec.rb:33:in `block (3 levels) in <top (required)>'

  4) Geoservice getting a map service should have layers
     Failure/Error: expect(@service.layers.length).to eq(2)

       expected: 2
            got: 0

:/home/rp/.rbenv/versions/2.1.2/bin/ruby -I/home/rp/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-support-3.1.2/lib:/home/rp/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib /home/rp/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed
       (compared using ==)
     # ./spec/geoservices/service_spec.rb:36:in `block (3 levels) in <top (required)>'

  5) Geoservice getting a map service should have layer index
     Failure/Error: expect(@service.layers[0]['name']).to eq("Watches/Warnings")
     NoMethodError:
       undefined method `[]' for nil:NilClass
     # ./spec/geoservices/service_spec.rb:39:in `block (3 levels) in <top (required)>'

Finished in 5.45 seconds (files took 0.22238 seconds to load)
10 examples, 5 failures
@ajturner
Copy link
Member

thanks for checking this - I'll take a look (or PR accepted if you discover the issue).

@ajturner ajturner self-assigned this Jan 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants