Skip to content

Commit

Permalink
test: test-gem-file-contents can be run in a temp container
Browse files Browse the repository at this point in the history
e.g., `rake concourse:task`
  • Loading branch information
flavorjones committed Dec 31, 2020
1 parent 7a8d6d8 commit b827a1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/test-gem-file-contents
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ describe File.basename(gemfile) do
describe "all platforms" do
it "contains every ruby file in lib/" do
expected = %x(git ls-files lib).split("\n").grep(/\.rb$/).sort
skip "looks like this isn't a git repository" if expected.empty?
actual = gemfile_contents.grep(%r{^lib/}).grep(/\.rb$/).sort
assert_equal(expected, actual)
end
Expand Down

0 comments on commit b827a1d

Please sign in to comment.