(thats Project Potential Planning)
Let's track what's happening and who's supposed to work on it.
We are using Ruby v2.1.3
, locally with sqlite3
and PhantomJS
.
- Install Xcode or Xcode Developer Tools:
- Download Xcode form the App Store, OR
xcode-select --install
- Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew update
- Setup RVM:
\curl -sSL https://get.rvm.io | bash -s stable --ruby
- Setup ruby:
rvm install ruby-2.1.3
andrvm use ruby-2.1.3
- Setup PhantomJS
brew install phantomjs
- Install gems:
bundle install
- Setup your environment variables:
- create a file in the application root:
.env
SECRET_KEY_BASE=#{rake secret}
ADMIN_EMAIL=#{whatever you want}
ADMIN_PASSWORD=#{whatever you want}
bundle exec guard
- ...
- Profit!
We're using MiniTest spec style for testing.
- To run all tests:
rake
- To run a specific test file:
rake test TEST=test/models/widget_test.rb
- To run a specific test within a file:
ruby -Ilib:test test/models/widget_test.rb -n test_0003_refreshes