Change FactoryGirl by FactoryBot
The name of FactoryGirl was changed to FactoryBot, so it should be updated it in the documentation.
This commit is contained in:
parent
cd96089a56
commit
e35f083b88
|
@ -86,13 +86,13 @@ module Shoulda
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# Or, if you're using
|
# Or, if you're using
|
||||||
# [FactoryGirl](http://github.com/thoughtbot/factory_girl) and you have a
|
# [FactoryBot](https://github.com/thoughtbot/factory_bot) and you have a
|
||||||
# `post` factory defined which automatically fills in `content`, you can
|
# `post` factory defined which automatically fills in `content`, you can
|
||||||
# say:
|
# say:
|
||||||
#
|
#
|
||||||
# RSpec.describe Post, type: :model do
|
# RSpec.describe Post, type: :model do
|
||||||
# describe "validations" do
|
# describe "validations" do
|
||||||
# subject { FactoryGirl.create(:post) }
|
# subject { FactoryBot.create(:post) }
|
||||||
# it { should validate_uniqueness_of(:title) }
|
# it { should validate_uniqueness_of(:title) }
|
||||||
# end
|
# end
|
||||||
# end
|
# end
|
||||||
|
|
Loading…
Reference in New Issue