Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from charlesrocket/spec
Browse files Browse the repository at this point in the history
Update spec
  • Loading branch information
charlesrocket authored Oct 25, 2021
2 parents 4e7befd + 1a71580 commit 2c1ca35
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 3 additions & 9 deletions spec/frightcrawler_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ end
describe Counter do
describe "#get_total" do
it "counts totals" do
Counter.reset
reset
Counter.total(2)
Counter.total(3)
Counter.get_total.should eq(5)
Expand All @@ -21,7 +21,7 @@ describe Counter do

describe "#get_unique" do
it "counts uniques" do
Counter.reset
reset
Counter.unique
Counter.unique
Counter.unique
Expand All @@ -37,13 +37,7 @@ describe Crawler do
end
end

describe "#check_csv", tags: "csv" do
it "checks CSV file" do
Crawler.check_csv("spec/data/test.csv").should eq("helvault file")
end
end

describe "#validate_csv" do
describe "#validate_csv", tags: ["api", "csv"] do
it "validates CSV file against provided game format" do
Crawler.check_csv("spec/data/test.csv").should eq("helvault file")
Crawler.validate_csv("spec/data/test.csv", "legacy").should eq("validated")
Expand Down
4 changes: 4 additions & 0 deletions spec/spec_helper.cr
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
require "spec"
require "../src/frightcrawler"

def reset
Counter.reset
end

0 comments on commit 2c1ca35

Please sign in to comment.