brooklynDev / airborne

RSpec driven API testing framework
MIT License
1.13k stars 122 forks source link

Rails 5.1.5 compatibilty #146

Open scottbarrow opened 6 years ago

scottbarrow commented 6 years ago
      mime-types (>= 1.16)

    carrierwave-base64 was resolved to 2.6.1, which depends on
      mime-types (~> 3.0)

    airborne was resolved to 0.0.18, which depends on
      rest-client (>= 1.7.2, ~> 1.7) was resolved to 1.8.0, which depends on
        mime-types (< 3.0, >= 1.16)

 rails (~> 5.1.5) was resolved to 5.1.5, which depends on
      actionpack (= 5.1.5) was resolved to 5.1.5, which depends on
        rack-test (>= 0.6.3)

    airborne was resolved to 0.2.13, which depends on
      rack-test (>= 0.6.2, ~> 0.6)

lock

      activemodel (>= 4.0.0)
      activesupport (>= 4.0.0)
      mime-types (>= 1.16)
    carrierwave-base64 (2.6.1)
      carrierwave (>= 0.8.0)
      mime-types (~> 3.0)
mime-types (3.1)
      mime-types-data (~> 3.2015)
  actionpack (5.1.5)
      actionview (= 5.1.5)
      activesupport (= 5.1.5)
      rack (~> 2.0)
      rack-test (>= 0.6.3)
rack-test (1.0.0)
      rack (>= 1.0, < 3)

seems that dependency on rack-test and mime-types need to be updated for what rails 5.1.5 are locked to

giovannibonetti commented 6 years ago

I know this was a long time ago, but I'd like to share a workaround if anyone else has the same problem. I solved it running:

bundle update rack-test

It actually downgraded rack-test to 0.8.3, but it worked. You can see in the changelog from 0.8.3 to 1.0.0 that you don't lose much.

I tested it with Rails 5.1.6 and it works fine.