@@ -16,12 +16,12 @@ def self.glob_dummy_seeds
1616 end
1717
1818 describe 'seeds with dependency' do
19- subject { Rake . application . tasks_in_scope ( defined? ( Rake ::Scope ) ? Rake ::Scope . new ( 'db:seed' ) : %w( db seed ) ) }
19+ subject { Rake . application . tasks_in_scope ( defined? ( Rake ::Scope ) ? Rake ::Scope . new ( 'db:seed' ) : %w[ db seed ] ) }
2020
2121 it 'creates all the seed tasks' do
22- seeds = %w( db:seed:circular1 db:seed:circular2 db:seed:common db:seed:dependency db:seed:dependency2
22+ seeds = %w[ db:seed:circular1 db:seed:circular2 db:seed:common db:seed:dependency db:seed:dependency2
2323 db:seed:dependent db:seed:dependent_on_nested db:seed:dependent_on_several db:seed:development
24- db:seed:development:users db:seed:no_block db:seed:original db:seed:reference_memos db:seed:with_block_memo db:seed:with_inline_memo )
24+ db:seed:development:users db:seed:no_block db:seed:original db:seed:reference_memos db:seed:with_block_memo db:seed:with_inline_memo ]
2525
2626 subject . map ( &:to_s ) . must_equal seeds
2727 end
@@ -35,7 +35,7 @@ def self.glob_dummy_seeds
3535 subject { Rake . application . lookup ( [ 'db' , 'seed' , seed ] . join ( ':' ) ) }
3636
3737 it 'is dependent on db:abort_if_pending_migrations' do
38- subject . prerequisites . must_equal %w( db:abort_if_pending_migrations )
38+ subject . prerequisites . must_equal %w[ db:abort_if_pending_migrations ]
3939 end
4040 end
4141 end
@@ -79,7 +79,7 @@ def setup
7979 subject { Rake ::Task [ 'db:seed:original' ] }
8080
8181 it 'is only dependent on db:abort_if_pending_migrations' do
82- subject . prerequisites . must_equal %w( db:abort_if_pending_migrations )
82+ subject . prerequisites . must_equal %w[ db:abort_if_pending_migrations ]
8383 end
8484
8585 it 'runs within Seedbank::Runner' do
@@ -96,7 +96,7 @@ def setup
9696 end
9797
9898 it 'is still only dependent on db:abort_if_pending_migrations' do
99- subject . prerequisites . must_equal %w( db:abort_if_pending_migrations )
99+ subject . prerequisites . must_equal %w[ db:abort_if_pending_migrations ]
100100 end
101101
102102 it 'still runs within Seedbank::Runner' do
@@ -122,7 +122,7 @@ def setup
122122 subject { Rake . application . lookup ( [ 'db' , 'seed' , environment , seed ] . join ( ':' ) ) }
123123
124124 it 'is dependent on db:abort_if_pending_migrations' do
125- subject . prerequisites . must_equal %w( db:abort_if_pending_migrations ) if subject
125+ subject . prerequisites . must_equal %w[ db:abort_if_pending_migrations ] if subject
126126 end
127127 end
128128 end
@@ -147,7 +147,7 @@ def setup
147147
148148 describe 'when no environment seeds are defined' do
149149 it 'is dependent on db:seed:common' do
150- subject . prerequisites . must_equal %w( db:abort_if_pending_migrations db:seed:common )
150+ subject . prerequisites . must_equal %w[ db:abort_if_pending_migrations db:seed:common ]
151151 end
152152 end
153153
@@ -157,7 +157,7 @@ def setup
157157 Rake . application . clear
158158 silence_warnings { Dummy ::Application . load_tasks }
159159
160- subject . prerequisites . must_equal %w( db:abort_if_pending_migrations db:seed:common db:seed:development )
160+ subject . prerequisites . must_equal %w[ db:abort_if_pending_migrations db:seed:common db:seed:development ]
161161 end
162162 end
163163 end
0 commit comments