Skip to content

Commit

Permalink
refactor specs: better descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
wtsnjp committed Aug 17, 2024
1 parent 6fec041 commit c8f0057
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion spec/config/buitin_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'os'
require 'spec_helper'

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

context "if no other sources of config is set" do
Expand Down
2 changes: 1 addition & 1 deletion spec/config/texdoc_cnf_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper'

RSpec.describe "Config files for Texdoc", :type => :aruba do
RSpec.describe "In config files for Texdoc", :type => :aruba do
include_context "messages"
include_context "texmf"

Expand Down
2 changes: 1 addition & 1 deletion spec/config/texdoc_dist_cnf_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper'

RSpec.describe "The shipped texdoc.cnf", :type => :aruba do
RSpec.describe "In the shipped texdoc.cnf", :type => :aruba do
include_context "messages"
include_context "texmf"

Expand Down
2 changes: 1 addition & 1 deletion spec/misc/errors_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper'

RSpec.describe "Errors", :type => :aruba do
RSpec.describe "Errors:", :type => :aruba do
include_context "messages"

context "when any document for input cannot be found" do
Expand Down
10 changes: 5 additions & 5 deletions spec/score/adjscore_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
require 'spec_helper'

RSpec.describe "Directive adjscore", :type => :aruba do
RSpec.describe "Score adjustment", :type => :aruba do
include_context "messages"
include_context "texmf"

context "global pattern score adjustment" do
context "for global pattern" do
let(:config_content) {
<<~EOF
stopalias texlive-en
Expand All @@ -26,7 +26,7 @@
end
end

context "global pattern score adjustment for aliased name" do
context "for global pattern of an aliased name" do
let(:config_content) {
<<~EOF
adjscore texlive-en = 7.3
Expand All @@ -47,7 +47,7 @@
end
end

context "specific pattern score adjustment" do
context "for specific pattern" do
let(:config_content) {
<<~EOF
adjscore(live) texlive-en = -2
Expand All @@ -68,7 +68,7 @@
end
end

context "specific pattern score adjustment for unmatch name" do
context "for specific pattern of an unmatch name" do
let(:config_content) {
<<~EOF
adjscore(live) texlive-en = -2
Expand Down
18 changes: 9 additions & 9 deletions spec/view/file_detection_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
require 'spec_helper'

RSpec.describe "File detection for viewing", :type => :aruba do
RSpec.describe "File type", :type => :aruba do
include_context "messages"
include_context "texmf"

context "File *.html" do
context "*.html" do
before(:each) do
run_texdoc "-dview --just-view", sample_html
end
Expand All @@ -16,7 +16,7 @@
end
end

context "File *.htm" do
context "*.htm" do
before(:each) do
run_texdoc "-dview --just-view", sample_htm
end
Expand All @@ -28,7 +28,7 @@
end
end

context "File *.dvi" do
context "*.dvi" do
before(:each) do
run_texdoc "-dview --just-view", sample_dvi
end
Expand All @@ -40,7 +40,7 @@
end
end

context "File *.md" do
context "*.md" do
before(:each) do
run_texdoc "-dview --just-view", sample_md
end
Expand All @@ -52,7 +52,7 @@
end
end

context "File *.txt" do
context "*.txt" do
before(:each) do
run_texdoc "-dview --just-view", sample_txt
end
Expand All @@ -64,7 +64,7 @@
end
end

context "File *.pdf" do
context "*.pdf" do
before(:each) do
run_texdoc "-dview --just-view", sample_pdf
end
Expand All @@ -76,7 +76,7 @@
end
end

context "File *.ps" do
context "*.ps" do
before(:each) do
run_texdoc "-dview --just-view", sample_ps
end
Expand All @@ -88,7 +88,7 @@
end
end

context "File *.tex" do
context "*.tex" do
before(:each) do
run_texdoc "-dview --just-view", sample_tex
end
Expand Down

0 comments on commit c8f0057

Please sign in to comment.