mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
adds missing highlighting directives
This commit is contained in:
parent
38759622f2
commit
261574c935
1 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ gem "factory_girl", "~> 4.0"
|
||||||
JRuby users: FactoryGirl works with JRuby starting with 1.6.7.2 (latest stable, as per July 2012).
|
JRuby users: FactoryGirl works with JRuby starting with 1.6.7.2 (latest stable, as per July 2012).
|
||||||
JRuby has to be used in 1.9 mode, for that, use JRUBY_OPTS environment variable:
|
JRuby has to be used in 1.9 mode, for that, use JRUBY_OPTS environment variable:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
export JRUBY_OPTS=--1.9
|
export JRUBY_OPTS=--1.9
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ Using Without Bundler
|
||||||
|
|
||||||
If you're not using Bundler, be sure to have the gem installed and call:
|
If you're not using Bundler, be sure to have the gem installed and call:
|
||||||
|
|
||||||
```
|
```ruby
|
||||||
require 'factory_girl'
|
require 'factory_girl'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -698,7 +698,7 @@ FactoryGirl.create(:post).author
|
||||||
|
|
||||||
Finally, traits can be used within other traits to mix in their attributes.
|
Finally, traits can be used within other traits to mix in their attributes.
|
||||||
|
|
||||||
```
|
```ruby
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :order do
|
factory :order do
|
||||||
trait :completed do
|
trait :completed do
|
||||||
|
|
Loading…
Add table
Reference in a new issue