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
ac82f132
Unverified
Commit
ac82f132
authored
Jan 26, 2018
by
Sid Raval
Committed by
GitHub
Jan 26, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2501 from eldemonstro/master
Rename FactoryGirl to FactoryBot
parents
fbdcbe8d
b88dcce4
Hide 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 @
ac82f132
...
...
@@ -983,7 +983,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:
...
...
@@ -1000,11 +1000,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