File tree 7 files changed +22
-12
lines changed
7 files changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -138,13 +138,13 @@ GEM
138
138
rb-fsevent (0.10.3 )
139
139
rb-inotify (0.10.0 )
140
140
ffi (~> 1.0 )
141
- rspec-core (3.0.4 )
142
- rspec-support (~> 3.0 .0 )
143
- rspec-expectations (3.0.4 )
141
+ rspec-core (3.9.0 )
142
+ rspec-support (= 3.9 .0 )
143
+ rspec-expectations (3.9.0 )
144
144
diff-lcs (>= 1.2.0 , < 2.0 )
145
- rspec-support (~> 3.0 .0 )
146
- rspec-mocks (3.0.4 )
147
- rspec-support (~> 3.0 .0 )
145
+ rspec-support (= 3.9 .0 )
146
+ rspec-mocks (3.9.0 )
147
+ rspec-support (= 3.9 .0 )
148
148
rspec-rails (3.0.2 )
149
149
actionpack (>= 3.0 )
150
150
activesupport (>= 3.0 )
153
153
rspec-expectations (~> 3.0.0 )
154
154
rspec-mocks (~> 3.0.0 )
155
155
rspec-support (~> 3.0.0 )
156
- rspec-support (3.0.4 )
156
+ rspec-support (3.9.0 )
157
157
ruby_dep (1.5.0 )
158
158
sass (3.7.4 )
159
159
sass-listen (~> 4.0.0 )
Original file line number Diff line number Diff line change 31
31
<%=
32
32
f . text_field :last_name ,
33
33
class : "form-control" ,
34
- placeholder : "Your last name" ,
35
- autofocus : true
34
+ placeholder : "Your last name"
36
35
%>
37
36
</ div >
38
37
</ div >
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ FactoryBot . define do
2
+ factory :user do
3
+
4
+ end
5
+ end
Original file line number Diff line number Diff line change
1
+ require 'rails_helper'
2
+
3
+ RSpec . describe User , :type => :model do
4
+
5
+ end
Original file line number Diff line number Diff line change 19
19
20
20
RSpec . configure do |config |
21
21
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
22
- config . fixture_path = "#{ ::Rails . root } /spec/fixtures"
22
+ # config.fixture_path = "#{::Rails.root}/spec/fixtures"
23
23
24
24
# If you're not using ActiveRecord, or you'd prefer not to run each of your
25
25
# examples within a transaction, remove the following line or assign false
26
26
# instead of true.
27
- config . use_transactional_fixtures = true
27
+ # config.use_transactional_fixtures = false
28
28
29
29
# RSpec Rails can automatically mix in different behaviours to your tests
30
30
# based on their file location, for example enabling you to call `get` and
40
40
# The different available types are documented in the features, such as in
41
41
# https://relishapp.com/rspec/rspec-rails/docs
42
42
config . infer_spec_type_from_file_location!
43
+ config . include FactoryBot ::Syntax ::Methods
43
44
end
Original file line number Diff line number Diff line change 75
75
mocks.verify_partial_doubles = true
76
76
end
77
77
=end
78
- config . include FactoryBot :: Syntax :: Methods
78
+
79
79
end
You can’t perform that action at this time.
0 commit comments