Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
b88dcce4
Commit
b88dcce4
authored
Oct 26, 2017
by
Fabricio Bezerra dos Santos
Committed by
GitHub
Oct 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename FactoryGirl to FactoryBot
FactoryGirl is a factory bot now
parent
c794f6df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
README.md
+3
-3
No files found.
README.md
View file @
b88dcce4
...
...
@@ -955,7 +955,7 @@ similar mechanism for whichever parallel testing library you use.
**Integration Tests**
Using integration tests with Factory
Girl
may save multiple copies of
Using integration tests with Factory
Bot
may save multiple copies of
your test files within the app. To avoid this, specify a custom path in
the
`config/environments/test.rb`
like so:
...
...
@@ -972,11 +972,11 @@ config.after(:suite) do
end
```
**Example of test configuration with Factory
Girl
**
**Example of test configuration with Factory
Bot
**
```ruby
Factory
Girl
.define do
Factory
Bot
.define do
factory :user do
avatar { File.new("#{Rails.root}/spec/support/fixtures/image.jpg") }
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment