jejacks0n/mercury — pull request #237 by mikepack (2012-06-16 23:31:22+00:00)
Title: Drop in database.yml before running specs

When setting up the repo locally to run specs, I ran into a series of problems that I needed to resolve. The resolution was fairly obvious after debugging: I needed database.yml and a db directory within the dummy app. Though it should be straightforward to recognize this for engine devs, it inhibited me from a smooth development/contribution process especially due to the elusive errors.

It's the difference between:

```
git clone https://github.com/jejacks0n/mercury.git && cd mercury && bundle && bundle exec rake --trace

...SNIP...
** Execute spec:javascripts

rake aborted!
unknown error
/Users/Mike/.rvm/gems/ruby-1.9.3-head/gems/selenium-webdriver-2.22.2/lib/selenium/webdriver/remote/response.rb:52:in `assert_ok'
...SNIP...
```
...and...

```
git clone -b dummy_db https://github.com/mikepack/mercury.git && cd mercury && bundle && bundle exec rake --trace

...SNIP...
** Execute spec:javascripts

......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Finished in 28.32 seconds
1078 examples, 0 failures
** Invoke cucumber (first_time)
...SNIP...
```

As it currently stands in master, there's some undocumented dependencies on database.yml and the db directory. I personally prefer being able to just `git clone` and `rake` and everything just works.