Skip to content

Commit

Permalink
Add analyzer class spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
hahwul committed Aug 10, 2023
1 parent 746e1b7 commit e21af3b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions spec/models/analyzer_spec.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
require "../../src/models/analyzer.cr"
require "../../src/options.cr"

describe "Initialize" do
options = default_options
options[:base] = "noir"
object = Analyzer.new(options)

it "getter - url" do
object.url.should eq("")
end

it "getter - scope" do
object.scope.should eq("url,param")
end

it "initialized - base_path" do
object.base_path.should eq("noir")
end
end

0 comments on commit e21af3b

Please sign in to comment.