1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00

Improve GETTING_STARTED markdown hierarchy, putting test suite config as sub headers and making main content primary (#983)

This commit is contained in:
Dave Guarino 2018-02-01 06:36:22 -08:00 committed by Josh Clayton
parent e16207157b
commit 5d56d598cb

View file

@ -28,7 +28,7 @@ Once your Gemfile is updated, you'll want to update your bundle.
Configure your test suite
-------------------------
# RSpec
### RSpec
```ruby
# spec/support/factory_bot.rb
@ -52,7 +52,7 @@ Remember to require the above file in your rails_helper since the support folder
require 'support/factory_bot'
```
# Test::Unit
### Test::Unit
```ruby
class Test::Unit::TestCase
@ -60,14 +60,14 @@ class Test::Unit::TestCase
end
```
# Cucumber
### Cucumber
```ruby
# env.rb (Rails example location - RAILS_ROOT/features/support/env.rb)
World(FactoryBot::Syntax::Methods)
```
# Spinach
### Spinach
```ruby
class Spinach::FeatureSteps
@ -75,7 +75,7 @@ class Spinach::FeatureSteps
end
```
# Minitest
### Minitest
```ruby
class Minitest::Unit::TestCase
@ -83,7 +83,7 @@ class Minitest::Unit::TestCase
end
```
# Minitest::Spec
### Minitest::Spec
```ruby
class Minitest::Spec
@ -91,7 +91,7 @@ class Minitest::Spec
end
```
# minitest-rails
### minitest-rails
```ruby
class ActiveSupport::TestCase