Skip to content

Commit 85abb35

Browse files
committed
Fix message of it clause
1 parent a6cd153 commit 85abb35

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

spec/lib/annotate/annotate_models_spec.rb

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def mock_column(name, type, options = {})
179179
context 'when header is "Schema Info"' do
180180
context 'when the primary key is not specified' do
181181
context 'when the columns are normal' do
182-
it 'should get schema info even if the primary key is not set' do
182+
it 'returns schema info' do
183183
klass = mock_class(:users,
184184
nil,
185185
[
@@ -202,7 +202,7 @@ def mock_column(name, type, options = {})
202202
end
203203

204204
context 'when an enum column exists' do
205-
it 'should get schema info with enum type' do
205+
it 'returns schema info' do
206206
klass = mock_class(:users,
207207
nil,
208208
[
@@ -225,7 +225,7 @@ def mock_column(name, type, options = {})
225225
end
226226

227227
context 'when unsigned columns exist' do
228-
it 'should get schema info with unsigned' do
228+
it 'returns schema info' do
229229
klass = mock_class(:users,
230230
nil,
231231
[
@@ -259,7 +259,7 @@ def mock_column(name, type, options = {})
259259
context 'when the primary key is specified' do
260260
context 'when the primary_key is :id' do
261261
context 'when columns are normal' do
262-
it 'should get schema info with default options' do
262+
it 'returns schema info' do
263263
klass = mock_class(:users,
264264
:id,
265265
[
@@ -284,7 +284,7 @@ def mock_column(name, type, options = {})
284284
end
285285

286286
context 'when columns have default values' do
287-
it 'should get schema info for integer and boolean with default' do
287+
it 'returns schema info with default values' do
288288
klass = mock_class(:users,
289289
:id,
290290
[
@@ -309,7 +309,7 @@ def mock_column(name, type, options = {})
309309
end
310310

311311
context 'when an integer column using ActiveRecord::Enum exists' do
312-
it 'sets correct default value for integer column when ActiveRecord::Enum is used' do
312+
it 'returns schema info with default values' do
313313
klass = mock_class(:users,
314314
:id,
315315
[
@@ -339,7 +339,7 @@ def mock_column(name, type, options = {})
339339
context 'when indexes exist' do
340340
context 'when option "show_indexes" is true' do
341341
context 'when indexes are normal' do
342-
it 'should get indexes keys' do
342+
it 'returns schema info with index information' do
343343
klass = mock_class(:users,
344344
:id,
345345
[
@@ -368,7 +368,7 @@ def mock_column(name, type, options = {})
368368
end
369369

370370
context 'when one of indexes includes orderd index key' do
371-
it 'should get ordered indexes keys' do
371+
it 'returns schema info with index information' do
372372
klass = mock_class(:users,
373373
:id,
374374
[
@@ -406,7 +406,7 @@ def mock_column(name, type, options = {})
406406
end
407407

408408
context 'when one of indexes includes "where" clause' do
409-
it 'should get indexes keys with where clause' do
409+
it 'returns schema info with index information' do
410410
klass = mock_class(:users,
411411
:id,
412412
[
@@ -444,7 +444,7 @@ def mock_column(name, type, options = {})
444444
end
445445

446446
context 'when one of indexes includes "using" clause other than "btree"' do
447-
it 'should get indexes keys with using clause other than btree' do
447+
it 'returns schema info with index information' do
448448
klass = mock_class(:users,
449449
:id,
450450
[
@@ -482,7 +482,7 @@ def mock_column(name, type, options = {})
482482
end
483483

484484
context 'when index is not defined' do
485-
it 'should not crash getting indexes keys' do
485+
it 'returns schema info without index information' do
486486
klass = mock_class(:users,
487487
:id,
488488
[
@@ -507,7 +507,7 @@ def mock_column(name, type, options = {})
507507

508508
context 'when option "simple_indexes" is true' do
509509
context 'when one of indexes includes "orders" clause' do # TODO
510-
it 'should get simple indexes keys' do
510+
it 'returns schema info with index information' do
511511
klass = mock_class(:users,
512512
:id,
513513
[
@@ -536,7 +536,7 @@ def mock_column(name, type, options = {})
536536
end
537537

538538
context 'when one of indexes is in string form' do
539-
it 'should get simple indexes keys if one is in string form' do
539+
it 'returns schema info with index information' do
540540
klass = mock_class(:users,
541541
:id,
542542
[
@@ -564,7 +564,7 @@ def mock_column(name, type, options = {})
564564
context 'when foreign keys exist' do
565565
context 'when option "show_foreign_keys" is specified' do
566566
context 'when foreign_keys does not have option' do
567-
it 'should get foreign key info' do
567+
it 'returns schema info with foreign keys' do
568568
klass = mock_class(:users,
569569
:id,
570570
[
@@ -605,7 +605,7 @@ def mock_column(name, type, options = {})
605605
end
606606

607607
context 'when foreign_keys have option "on_delete" and "on_update"' do
608-
it 'should get foreign key info if on_delete/on_update options present' do
608+
it 'returns schema info with foreign keys' do
609609
klass = mock_class(:users,
610610
:id,
611611
[
@@ -642,7 +642,7 @@ def mock_column(name, type, options = {})
642642
end
643643

644644
context 'when option "show_foreign_keys" and "show_complete_foreign_keys" are specified' do
645-
it 'should get complete foreign key info' do
645+
it 'returns schema info with foreign keys' do
646646
klass = mock_class(:users,
647647
:id,
648648
[
@@ -685,7 +685,7 @@ def mock_column(name, type, options = {})
685685
end
686686

687687
context 'when the primary key is an array (using composite_primary_keys)' do
688-
it 'should get schema info even if the primary key is array, if using composite_primary_keys' do
688+
it 'returns schema info' do
689689
klass = mock_class(:users,
690690
[:a_id, :b_id],
691691
[
@@ -715,7 +715,7 @@ def mock_column(name, type, options = {})
715715
context 'when the primary key is specified' do
716716
context 'when the primary_key is :id' do
717717
context 'when option "format_rdoc" is true' do
718-
it 'should get schema info as RDoc' do
718+
it 'returns schema info in RDoc format' do
719719
klass = mock_class(:users,
720720
:id,
721721
[
@@ -741,7 +741,7 @@ def mock_column(name, type, options = {})
741741

742742
context 'when option "format_markdown" is true' do
743743
context 'when other option is not specified' do
744-
it 'should get schema info as Markdown' do
744+
it 'returns schema info in Markdown format' do
745745
klass = mock_class(:users,
746746
:id,
747747
[
@@ -769,7 +769,7 @@ def mock_column(name, type, options = {})
769769

770770
context 'when option "show_indexes" is true' do
771771
context 'when indexes are normal' do
772-
it 'should get schema info as Markdown with indexes' do
772+
it 'returns schema info with index information in Markdown format' do
773773
klass = mock_class(:users,
774774
:id,
775775
[
@@ -808,7 +808,7 @@ def mock_column(name, type, options = {})
808808
end
809809

810810
context 'when one of indexes includes "unique" clause' do
811-
it 'should get schema info as Markdown with unique indexes' do
811+
it 'returns schema info with index information in Markdown format' do
812812
klass = mock_class(:users,
813813
:id,
814814
[
@@ -848,7 +848,7 @@ def mock_column(name, type, options = {})
848848
end
849849

850850
context 'when one of indexes includes orderd index key' do
851-
it 'should get schema info as Markdown with ordered indexes' do
851+
it 'returns schema info with index information in Markdown format' do
852852
klass = mock_class(:users,
853853
:id,
854854
[
@@ -888,7 +888,7 @@ def mock_column(name, type, options = {})
888888
end
889889

890890
context 'when one of indexes includes "where" clause and "unique" clause' do
891-
it 'should get schema info as Markdown with indexes with WHERE clause' do
891+
it 'returns schema info with index information in Markdown format' do
892892
klass = mock_class(:users,
893893
:id,
894894
[
@@ -929,7 +929,7 @@ def mock_column(name, type, options = {})
929929
end
930930

931931
context 'when one of indexes includes "using" clause other than "btree"' do
932-
it 'should get schema info as Markdown with indexes with using clause other than btree' do
932+
it 'returns schema info with index information in Markdown format' do
933933
klass = mock_class(:users,
934934
:id,
935935
[
@@ -971,7 +971,7 @@ def mock_column(name, type, options = {})
971971

972972
context 'when option "show_foreign_keys" is true' do
973973
context 'when foreign_keys have option "on_delete" and "on_update"' do
974-
it 'should get schema info as Markdown with foreign keys' do
974+
it 'returns schema info with foreign_keys in Markdown format' do
975975
klass = mock_class(:users,
976976
:id,
977977
[

0 commit comments

Comments
 (0)