spec/plugins/pre_commit/checks/checkstyle_spec.rb in java-checkstyle-1.0.3 vs spec/plugins/pre_commit/checks/checkstyle_spec.rb in java-checkstyle-1.0.4

- old
+ new

@@ -37,14 +37,13 @@ expect(result).to include "File errors: #{file2}" end it "should accept custom checkstyle" do # given + ENV["CHECKSTYLE_CONFIG"] = "sun_checks.xml" files = [fixture_file('bad.java')] - custom_config = double(PreCommit::Configuration, - get: fixture_file('sun_checks.xml')) # when - check.config = custom_config + result = check.call(files) # then - expect(check.call(files)).to_not be_nil + expect(result).to_not be_nil end end