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 Configure your test suite
------------------------- -------------------------
# RSpec ### RSpec
```ruby ```ruby
# spec/support/factory_bot.rb # 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' require 'support/factory_bot'
``` ```
# Test::Unit ### Test::Unit
```ruby ```ruby
class Test::Unit::TestCase class Test::Unit::TestCase
@ -60,14 +60,14 @@ class Test::Unit::TestCase
end end
``` ```
# Cucumber ### Cucumber
```ruby ```ruby
# env.rb (Rails example location - RAILS_ROOT/features/support/env.rb) # env.rb (Rails example location - RAILS_ROOT/features/support/env.rb)
World(FactoryBot::Syntax::Methods) World(FactoryBot::Syntax::Methods)
``` ```
# Spinach ### Spinach
```ruby ```ruby
class Spinach::FeatureSteps class Spinach::FeatureSteps
@ -75,7 +75,7 @@ class Spinach::FeatureSteps
end end
``` ```
# Minitest ### Minitest
```ruby ```ruby
class Minitest::Unit::TestCase class Minitest::Unit::TestCase
@ -83,7 +83,7 @@ class Minitest::Unit::TestCase
end end
``` ```
# Minitest::Spec ### Minitest::Spec
```ruby ```ruby
class Minitest::Spec class Minitest::Spec
@ -91,7 +91,7 @@ class Minitest::Spec
end end
``` ```
# minitest-rails ### minitest-rails
```ruby ```ruby
class ActiveSupport::TestCase class ActiveSupport::TestCase