[DRE-maint] Bug#826317: ruby-grape: FTBFS because of failing tests

Cédric Boutillier boutil at debian.org
Sat Jun 4 13:53:42 UTC 2016


Package: ruby-grape
Version: 0.5.0-1
Severity: serious
Justification: fails to build from source (but built successfully in the past)

Dear Maintainer,

Since the presence of ruby-grape-entity 0.5.1-1 in the archive, ruby-grape
0.5.0-1 has failing tests, resulting in a failing build.

Failures:

  1) Grape::API http_codes is used as presenter
     Failure/Error: expect(last_response.body).to eql({ code: 408, static: 'some static text' }.to_json)

       expected: "{\"code\":408,\"static\":\"some static text\"}"
            got: "{:code=>408, :static=>\"some static text\"}"

       (compared using eql?)
     # ./spec/grape/api_spec.rb:1887:in `block (3 levels) in <top (required)>'

  2) Grape::API http_codes presented with
     Failure/Error: expect(last_response.body).to eql({ code: 408, static: 'some static text' }.to_json)

       expected: "{\"code\":408,\"static\":\"some static text\"}"
            got: "{:code=>408, :static=>\"some static text\"}"

       (compared using eql?)
     # ./spec/grape/api_spec.rb:1898:in `block (3 levels) in <top (required)>'

  3) Grape::Middleware::Error with http code presents an error message
     Failure/Error: expect(last_response.body).to eq({ code: 200, static: 'static text' }.to_json)

       expected: "{\"code\":200,\"static\":\"static text\"}"
            got: "{:code=>200, :static=>\"static text\"}"

       (compared using ==)
     # ./spec/grape/middleware/error_spec.rb:74:in `block (3 levels) in <top (required)>'

Finished in 6.67 seconds (files took 0.77349 seconds to load)
1162 examples, 3 failures

Failed examples:

rspec ./spec/grape/api_spec.rb:1876 # Grape::API http_codes is used as presenter
rspec ./spec/grape/api_spec.rb:1890 # Grape::API http_codes presented with
rspec ./spec/grape/middleware/error_spec.rb:70 # Grape::Middleware::Error with http code presents an error message


Cheers,

Cédric

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the Pkg-ruby-extras-maintainers mailing list