File tree 4 files changed +74
-0
lines changed
4 files changed +74
-0
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,9 @@ group :development do
51
51
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
52
52
gem 'spring'
53
53
gem 'spring-watcher-listen' , '~> 2.0.0'
54
+ gem 'spring-commands-rspec'
54
55
gem 'ronn'
56
+ gem 'guard-rspec' , require : false
55
57
end
56
58
57
59
group :test do
Original file line number Diff line number Diff line change 39
39
byebug (10.0.0 )
40
40
case_transform (0.2 )
41
41
activesupport
42
+ coderay (1.1.2 )
42
43
concurrent-ruby (1.0.5 )
43
44
config (1.7.0 )
44
45
activesupport (>= 3.0 )
95
96
fast_gettext (1.6.0 )
96
97
ffaker (2.8.1 )
97
98
ffi (1.9.21 )
99
+ formatador (0.2.5 )
98
100
fuubar (2.3.1 )
99
101
rspec-core (~> 3.0 )
100
102
ruby-progressbar (~> 1.4 )
104
106
gettext_i18n_rails (1.8.0 )
105
107
fast_gettext (>= 0.9.0 )
106
108
gettext_test_log (0.2.1 )
109
+ guard (2.14.2 )
110
+ formatador (>= 0.2.4 )
111
+ listen (>= 2.7 , < 4.0 )
112
+ lumberjack (>= 1.0.12 , < 2.0 )
113
+ nenv (~> 0.1 )
114
+ notiffany (~> 0.0 )
115
+ pry (>= 0.9.12 )
116
+ shellany (~> 0.0 )
117
+ thor (>= 0.18.1 )
118
+ guard-compat (1.2.1 )
119
+ guard-rspec (4.7.3 )
120
+ guard (~> 2.1 )
121
+ guard-compat (~> 1.1 )
122
+ rspec (>= 2.99.0 , < 4.0 )
107
123
hashdiff (0.3.7 )
108
124
hpricot (0.8.6 )
109
125
i18n (0.9.5 )
@@ -119,18 +135,26 @@ GEM
119
135
loofah (2.2.0 )
120
136
crass (~> 1.0.2 )
121
137
nokogiri (>= 1.5.9 )
138
+ lumberjack (1.0.12 )
122
139
memory_profiler (0.9.9 )
123
140
method_source (0.9.0 )
124
141
mini_portile2 (2.3.0 )
125
142
minitest (5.11.3 )
126
143
mustache (1.0.5 )
127
144
mysql2 (0.4.10 )
145
+ nenv (0.3.0 )
128
146
nokogiri (1.8.2 )
129
147
mini_portile2 (~> 2.3.0 )
148
+ notiffany (0.1.1 )
149
+ nenv (~> 0.1 )
150
+ shellany (~> 0.0 )
130
151
parallel (1.12.1 )
131
152
parser (2.4.0.2 )
132
153
ast (~> 2.3 )
133
154
powerpack (0.1.1 )
155
+ pry (0.11.3 )
156
+ coderay (~> 1.1.0 )
157
+ method_source (~> 0.9.0 )
134
158
public_suffix (3.0.2 )
135
159
puma (3.10.0 )
136
160
rack (2.0.4 )
160
184
hpricot (>= 0.8.2 )
161
185
mustache (>= 0.7.0 )
162
186
rdiscount (>= 1.5.8 )
187
+ rspec (3.7.0 )
188
+ rspec-core (~> 3.7.0 )
189
+ rspec-expectations (~> 3.7.0 )
190
+ rspec-mocks (~> 3.7.0 )
163
191
rspec-core (3.7.1 )
164
192
rspec-support (~> 3.7.0 )
165
193
rspec-expectations (3.7.0 )
198
226
rubocop (= 0.52.1 )
199
227
rubocop-rspec (= 1.19 )
200
228
sexp_processor (4.10.0 )
229
+ shellany (0.0.1 )
201
230
shoulda-matchers (3.1.2 )
202
231
activesupport (>= 4.0.0 )
203
232
simplecov (0.14.1 )
207
236
simplecov-html (0.10.2 )
208
237
spring (2.0.2 )
209
238
activesupport (>= 4.2 )
239
+ spring-commands-rspec (1.0.4 )
240
+ spring (>= 0.9.1 )
210
241
spring-watcher-listen (2.0.1 )
211
242
listen (>= 2.7 , < 4.0 )
212
243
spring (>= 1.2 , < 3.0 )
@@ -257,6 +288,7 @@ DEPENDENCIES
257
288
gettext
258
289
gettext_i18n_rails
259
290
gettext_test_log
291
+ guard-rspec
260
292
listen (>= 3.0.5 , < 3.2 )
261
293
memory_profiler
262
294
mysql2 (~> 0.4.10 )
@@ -272,6 +304,7 @@ DEPENDENCIES
272
304
shoulda-matchers
273
305
simplecov
274
306
spring
307
+ spring-commands-rspec
275
308
spring-watcher-listen (~> 2.0.0 )
276
309
terminal-table (~> 1.8 )
277
310
thor
Original file line number Diff line number Diff line change
1
+ guard :rspec , cmd : 'bin/rspec' do
2
+ require 'guard/rspec/dsl'
3
+ dsl = Guard ::RSpec ::Dsl . new ( self )
4
+
5
+ # Feel free to open issues for suggestions and improvements
6
+
7
+ # RSpec files
8
+ rspec = dsl . rspec
9
+ watch ( rspec . spec_helper ) { rspec . spec_dir }
10
+ watch ( rspec . spec_support ) { rspec . spec_dir }
11
+ watch ( rspec . spec_files )
12
+
13
+ # Ruby files
14
+ ruby = dsl . ruby
15
+ dsl . watch_spec_files_for ( ruby . lib_files )
16
+
17
+ # Rails files
18
+ rails = dsl . rails ( view_extensions : %w[ erb haml slim ] )
19
+ dsl . watch_spec_files_for ( rails . app_files )
20
+ dsl . watch_spec_files_for ( rails . views )
21
+
22
+ watch ( rails . controllers ) do |m |
23
+ [
24
+ rspec . spec . call ( "routing/#{ m [ 1 ] } _routing" ) ,
25
+ rspec . spec . call ( "controllers/#{ m [ 1 ] } _controller" ) ,
26
+ rspec . spec . call ( "acceptance/#{ m [ 1 ] } " )
27
+ ]
28
+ end
29
+
30
+ # Rails config changes
31
+ watch ( rails . spec_helper ) { rspec . spec_dir }
32
+ watch ( rails . routes ) { "#{ rspec . spec_dir } /routing" }
33
+ watch ( rails . app_controller ) { "#{ rspec . spec_dir } /controllers" }
34
+ end
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
+ begin
3
+ load File . expand_path ( '../spring' , __FILE__ )
4
+ rescue LoadError => e
5
+ raise unless e . message . include? ( 'spring' )
6
+ end
2
7
# frozen_string_literal: true
3
8
4
9
#
You can’t perform that action at this time.
0 commit comments