File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1616 end
1717
1818 context 'as a signed-in non-administrator' do
19- let ( :user ) { FactoryGirl . build ( :user ) }
19+ let ( :user ) { FactoryBot . build ( :user ) }
2020
2121 it 'should respond with a 404' do
2222 expect ( response . status ) . to be ( 404 )
2323 end
2424 end
2525
2626 context 'as a signed-in administrator' do
27- let ( :user ) { FactoryGirl . build ( :administrator ) }
27+ let ( :user ) { FactoryBot . build ( :administrator ) }
2828
2929 it 'should respond with a 200' do
3030 expect ( response . status ) . to be ( 200 )
Original file line number Diff line number Diff line change 1414 it { should have_link 'Sign Up' }
1515
1616 describe 'success' do
17- let ( :user ) { FactoryGirl . build ( :user ) }
17+ let ( :user ) { FactoryBot . build ( :user ) }
1818
1919 before do
2020 fill_in 'username' , :with => user . username
3636 end
3737
3838 describe 'success with email' do
39- let ( :user ) { FactoryGirl . build ( :user ) }
39+ let ( :user ) { FactoryBot . build ( :user ) }
4040
4141 before do
4242 fill_in 'username' , :with => user . email
5858 end
5959
6060 describe 'failure' do
61- let ( :user ) { FactoryGirl . build ( :user ) }
61+ let ( :user ) { FactoryBot . build ( :user ) }
6262
6363 before do
6464 fill_in 'username' , :with => user . username
Original file line number Diff line number Diff line change 11require 'factory_bot'
22
3- FactoryGirl . define do
3+ FactoryBot . define do
44 factory :user do
55 username 'applejack'
66 password 'password'
You can’t perform that action at this time.
0 commit comments