rails 3.1 hackfest QueryCache test
Ruby JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
test
vendor
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Test app for Rails issue #2142

to setup, run:

bundle install rake db:create:all rake db:migrate bundle exec rails s

then go to http://localhost:3000

and you should see "hello world". Now go in and change config/database.yml; perhaps change the username to root2

now it will fail. However if you look in app/controllers/public_controller.rb, we would expect the exception to be rescued; but it is not. This is because the QueryCache is creating a connection and if it fails that low down it misses almost everything (possibly including hoptoad?)