Skip to content

Commit

Permalink
Merge pull request #49 from procore/modernise
Browse files Browse the repository at this point in the history
Make local dev a bit easier
  • Loading branch information
wjessop authored Apr 15, 2019
2 parents 253dfcf + c76b074 commit 9da3dc6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ spec/test_app/log/*.log
spec/test_app/tmp/
spec/test_app/.sass-cache
Gemfile.lock
/spec/test_app/config/database.yml
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,20 @@ class MySessionManager
end
```

# Local development

## Testing

1. run `bundle` in the root dir
2. cp `spec/test_app/config/database.yml.sample` to `spec/test_app/config/database.yml` and edit for your setup
3. export RAILS_ENV=test
4. `cd spec/test_app`
5. `rake db:create
6. `cd ../..`
7. rake db:setup db:migrate

You can now run `rspec` in the root directory.

## Licence
Registrar is copyright © 2018 Procore. It is free software, and may be redistributed under the terms specified in the LICENSE file.

Expand Down
1 change: 1 addition & 0 deletions registrar.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ Gem::Specification.new do |s|
s.add_development_dependency "pg"
s.add_development_dependency "rake"
s.add_development_dependency "rspec-rails"
s.add_development_dependency "listen"
end
28 changes: 0 additions & 28 deletions spec/test_app/README.rdoc

This file was deleted.

File renamed without changes.

0 comments on commit 9da3dc6

Please sign in to comment.