Skip to content

Commit

Permalink
Fix build. Update recent specs of doc generator
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardiff committed Dec 1, 2018
1 parent e00cf8c commit 5cf73e3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/compiler/crystal/tools/doc/generator_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ describe Doc::Generator do
describe "must_include_toplevel?" do
it "returns false if program has nothing" do
program = Program.new
generator = Doc::Generator.new program, ["foo"], ".", nil
generator = Doc::Generator.new program, ["foo"], ".", "html", nil
doc_type = Doc::Type.new generator, program

generator.must_include_toplevel?(doc_type).should be_false
end

it "returns true if program has constant" do
program = Program.new
generator = Doc::Generator.new program, ["foo"], ".", nil
generator = Doc::Generator.new program, ["foo"], ".", "html", nil
doc_type = Doc::Type.new generator, program

constant = Const.new program, program, "Foo", 1.int32
Expand All @@ -24,7 +24,7 @@ describe Doc::Generator do

it "returns false if program has constant which is defined in other place" do
program = Program.new
generator = Doc::Generator.new program, ["foo"], ".", nil
generator = Doc::Generator.new program, ["foo"], ".", "html", nil
doc_type = Doc::Type.new generator, program

constant = Const.new program, program, "Foo", 1.int32
Expand All @@ -36,7 +36,7 @@ describe Doc::Generator do

it "returns true if program has macro" do
program = Program.new
generator = Doc::Generator.new program, ["foo"], ".", nil
generator = Doc::Generator.new program, ["foo"], ".", "html", nil
doc_type = Doc::Type.new generator, program

a_macro = Macro.new "foo"
Expand All @@ -48,7 +48,7 @@ describe Doc::Generator do

it "returns false if program has macro which is defined in other place" do
program = Program.new
generator = Doc::Generator.new program, ["foo"], ".", nil
generator = Doc::Generator.new program, ["foo"], ".", "html", nil
doc_type = Doc::Type.new generator, program

a_macro = Macro.new "foo"
Expand All @@ -60,7 +60,7 @@ describe Doc::Generator do

it "returns true if program has method" do
program = Program.new
generator = Doc::Generator.new program, ["foo"], ".", nil
generator = Doc::Generator.new program, ["foo"], ".", "html", nil
doc_type = Doc::Type.new generator, program

a_def = Def.new "foo"
Expand All @@ -72,7 +72,7 @@ describe Doc::Generator do

it "returns false if program has method which is defined in other place" do
program = Program.new
generator = Doc::Generator.new program, ["foo"], ".", nil
generator = Doc::Generator.new program, ["foo"], ".", "html", nil
doc_type = Doc::Type.new generator, program

a_def = Def.new "foo"
Expand Down

0 comments on commit 5cf73e3

Please sign in to comment.