diff --git a/scripts/test-gem-file-contents b/scripts/test-gem-file-contents index 36532d1fa4c..c1a2670a626 100755 --- a/scripts/test-gem-file-contents +++ b/scripts/test-gem-file-contents @@ -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