Skip to content

Commit c8f0057

Browse files
committed
refactor specs: better descriptions
1 parent 6fec041 commit c8f0057

6 files changed

+18
-18
lines changed

spec/config/buitin_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'os'
22
require 'spec_helper'
33

4-
RSpec.describe "The build-in config", :type => :aruba do
4+
RSpec.describe "The built-in configs", :type => :aruba do
55
include_context "messages"
66

77
context "if no other sources of config is set" do

spec/config/texdoc_cnf_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'spec_helper'
22

3-
RSpec.describe "Config files for Texdoc", :type => :aruba do
3+
RSpec.describe "In config files for Texdoc", :type => :aruba do
44
include_context "messages"
55
include_context "texmf"
66

spec/config/texdoc_dist_cnf_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'spec_helper'
22

3-
RSpec.describe "The shipped texdoc.cnf", :type => :aruba do
3+
RSpec.describe "In the shipped texdoc.cnf", :type => :aruba do
44
include_context "messages"
55
include_context "texmf"
66

spec/misc/errors_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'spec_helper'
22

3-
RSpec.describe "Errors", :type => :aruba do
3+
RSpec.describe "Errors:", :type => :aruba do
44
include_context "messages"
55

66
context "when any document for input cannot be found" do

spec/score/adjscore_spec.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
require 'spec_helper'
22

3-
RSpec.describe "Directive adjscore", :type => :aruba do
3+
RSpec.describe "Score adjustment", :type => :aruba do
44
include_context "messages"
55
include_context "texmf"
66

7-
context "global pattern score adjustment" do
7+
context "for global pattern" do
88
let(:config_content) {
99
<<~EOF
1010
stopalias texlive-en
@@ -26,7 +26,7 @@
2626
end
2727
end
2828

29-
context "global pattern score adjustment for aliased name" do
29+
context "for global pattern of an aliased name" do
3030
let(:config_content) {
3131
<<~EOF
3232
adjscore texlive-en = 7.3
@@ -47,7 +47,7 @@
4747
end
4848
end
4949

50-
context "specific pattern score adjustment" do
50+
context "for specific pattern" do
5151
let(:config_content) {
5252
<<~EOF
5353
adjscore(live) texlive-en = -2
@@ -68,7 +68,7 @@
6868
end
6969
end
7070

71-
context "specific pattern score adjustment for unmatch name" do
71+
context "for specific pattern of an unmatch name" do
7272
let(:config_content) {
7373
<<~EOF
7474
adjscore(live) texlive-en = -2

spec/view/file_detection_spec.rb

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
require 'spec_helper'
22

3-
RSpec.describe "File detection for viewing", :type => :aruba do
3+
RSpec.describe "File type", :type => :aruba do
44
include_context "messages"
55
include_context "texmf"
66

7-
context "File *.html" do
7+
context "*.html" do
88
before(:each) do
99
run_texdoc "-dview --just-view", sample_html
1010
end
@@ -16,7 +16,7 @@
1616
end
1717
end
1818

19-
context "File *.htm" do
19+
context "*.htm" do
2020
before(:each) do
2121
run_texdoc "-dview --just-view", sample_htm
2222
end
@@ -28,7 +28,7 @@
2828
end
2929
end
3030

31-
context "File *.dvi" do
31+
context "*.dvi" do
3232
before(:each) do
3333
run_texdoc "-dview --just-view", sample_dvi
3434
end
@@ -40,7 +40,7 @@
4040
end
4141
end
4242

43-
context "File *.md" do
43+
context "*.md" do
4444
before(:each) do
4545
run_texdoc "-dview --just-view", sample_md
4646
end
@@ -52,7 +52,7 @@
5252
end
5353
end
5454

55-
context "File *.txt" do
55+
context "*.txt" do
5656
before(:each) do
5757
run_texdoc "-dview --just-view", sample_txt
5858
end
@@ -64,7 +64,7 @@
6464
end
6565
end
6666

67-
context "File *.pdf" do
67+
context "*.pdf" do
6868
before(:each) do
6969
run_texdoc "-dview --just-view", sample_pdf
7070
end
@@ -76,7 +76,7 @@
7676
end
7777
end
7878

79-
context "File *.ps" do
79+
context "*.ps" do
8080
before(:each) do
8181
run_texdoc "-dview --just-view", sample_ps
8282
end
@@ -88,7 +88,7 @@
8888
end
8989
end
9090

91-
context "File *.tex" do
91+
context "*.tex" do
9292
before(:each) do
9393
run_texdoc "-dview --just-view", sample_tex
9494
end

0 commit comments

Comments
 (0)