Last active
August 29, 2015 14:05
-
-
Save rsutphin/a7f35ad522f7fa8dc1e9 to your computer and use it in GitHub Desktop.
Reproduce an error on require that happens with roar-rails but not roar alone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -xe | |
echo "=== Build test app ===" | |
# Happens with Rails 3.2.19 also | |
RAILS_VERSION=4.1.5 | |
rm -rf some_app | |
rails _"$RAILS_VERSION"_ new some_app --skip-bundle --skip-spring | |
cd some_app | |
echo 'gem "roar-rails"' >> Gemfile | |
bundle install | |
echo "=== Tests ===" | |
echo "With roar alone:" | |
ruby -r roar -e 'require("roar/representer/json/hal") && puts("Success!")' | |
echo "With roar-rails:" | |
rails runner 'require("roar/representer/json/hal") && puts("Success!")' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output from the "tests" section for me with Rails 4.1.5: