Prereqs:
- Rails 3.2.16 and Rails 4.0.2 installed, including each kind of app's default dependencies. (E.g., sdoc for Rails 4, etc.)
- PostgreSQL configured so that dropdb and createdb work without authentication
To run:
-
Clone this gist
-
Edit database.yml so that the username and password are ones that will work on your database.
-
Run:
$ RAILS_VERSION=3.2.16 ./pg_enum_and_fixtures_repo.sh
-
Observe that the test passes
-
Run:
$ RAILS_VERSION=4.0.2 ./pg_enum_and_fixtures_repo.sh
-
Observe that the test fails