- Ruby: 2.4.0p0
- Rails: 5.1.4
- PostgreSQL: 9.3
rails new rails-bdd -T --skip-test-unit, -B --skip-bundle, -d postgresql
bundle install --path vendor/bundle
group :development, :test do
gem 'rspec-rails'
end
bundle
bundle exec rails generate rspec:install
group :test do
gem 'shoulda-matchers'
end
Add the following block to the end of spec/rails_helper.rb
Shoulda::Matchers.configure do |config|
config.integrate do |with|
with.test_framework :rspec
with.library :rails
end
end
group :test do
gem 'shoulda-matchers'
gem 'cucumber-rails', require: false
gem 'database_cleaner'
end
bundle
rails generate cucumber:install
bundle exec rake ci:tests
rspec spec/models/post_spec.rb
rspec
cucumber features/home_page.feature
cucumber
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...