> What is the error supposed to look like?

Just something like the following, I assume:
```
irb(main):001:0> require "foo"
LoadError: no such file to load -- foo
        from (irb):1:in `require'
        from (irb):1
        from :0
```

Maybe it works just fine in this case because the `require` is protected and occur later?