Skip to content

Commit

Permalink
Add test to verify nested spec folders are ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
bronzdoc committed Jan 22, 2021
1 parent fde61e2 commit ca5eede
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions samples/engines/spec/nested_sample_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

def hello
puts "hello world"
end
8 changes: 8 additions & 0 deletions test/lib/skunk/cli/commands/status_reporter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ def analysed_module.churn
_(reporter.update_status_message).must_include output
_(reporter.update_status_message).must_include "Generated with Skunk v#{Skunk::VERSION}"
end

context "When there's nested spec files" do
let(:paths) { "samples" }
it "reports the SkunkScore" do
_(reporter.update_status_message).must_include output
_(reporter.update_status_message).must_include "Generated with Skunk v#{Skunk::VERSION}"
end
end
end
end

Expand Down

0 comments on commit ca5eede

Please sign in to comment.