# Cannot load such file -- pay\_u/response

**URL:** <https://travis-ci.community/t/cannot-load-such-file-pay-u-response/6659>\
**Category:** Ruby\
**Created:** [December 29, 2019, 1:59am UTC](https://travis-ci.community/t/cannot-load-such-file-pay-u-response/6659 "2019-12-29T01:59:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jedrekdomanski](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/jedrekdomanski/32/3522_2.png) [@jedrekdomanski](https://travis-ci.community/u/jedrekdomanski)\
**Post date:** [December 29, 2019, 1:59am UTC](https://travis-ci.community/t/cannot-load-such-file-pay-u-response/6659/1 "2019-12-29T01:59:05Z")

</div>

I have this code, it works locally but on Travis it does not.

```auto
...
require 'pay_u/errors'
require 'pay_u/response'
require 'pay_u/requests/authorize'
...

```

I am getting the error

```auto
An error occurred while loading spec_helper.
Hint: Install the `did_you_mean` gem in order to provide suggestions for similarly named files.
Failure/Error: require 'pay_u/response'
LoadError:
  cannot load such file -- pay_u/response
# ./lib/pay_u.rb:11:in `require'
# ./lib/pay_u.rb:11:in `<top (required)>'
# ./spec/spec_helper.rb:2:in `require'
# ./spec/spec_helper.rb:2:in `<top (required)>'
No examples found.
No examples found.
Finished in 0.00003 seconds (files took 0.08183 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples
Finished in 0.00003 seconds (files took 0.08183 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples

```

It works fine locally. Why am I getting this error?

[https://travis-ci.org/jedrekdomanski/pay\_u](https://travis-ci.org/jedrekdomanski/pay_u)

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [December 29, 2019, 6:19am UTC](https://travis-ci.community/t/cannot-load-such-file-pay-u-response/6659/2 "2019-12-29T06:19:06Z")

</div>

The error message – `cannot load such file -- pay_u/response` – is pretty informative.

If something works locally but not in Travis, this means there are differences between your local machine and Travis environment: uncommitted changes, globally installed gems etc.

---

<div class="post-metadata">

**Author:** ![jedrekdomanski](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/jedrekdomanski/32/3522_2.png) [@jedrekdomanski](https://travis-ci.community/u/jedrekdomanski)\
**Post date:** [December 29, 2019, 11:14am UTC](https://travis-ci.community/t/cannot-load-such-file-pay-u-response/6659/3 "2019-12-29T11:14:11Z")

</div>

Oh my God, you know what? Or maybe I am not saying anything to avoid shame. I … forgot to add this file to repository…I can’t believe I did that. So sorry, my bad.
