This application is the demonstration of the first session in Singapore Rails Learning Group. It uses SQLite as the database.
Update your gemfile to include the below gems:
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platform: :mri
gem 'rspec-rails'
gem 'factory_girl_rails'
end
group :test do
gem 'rails-controller-testing'
gem 'faker'
gem 'capybara'
gem 'database_cleaner'
gem 'launchy'
gem 'selenium-webdriver'
endThen run the following command to install rspec:
rails generate rspec:install
This will add the following files:
.rspecspec/spec_helper.rbspec/rails_helper.rb
Use the rspec command to run your specs:
bundle exec rspec
You should see 0 examples, 0 failures in your terminal/bash.