spec/cc/analyzer/issue_validations/path_presence_validation_spec.rb (13 lines of code) (raw):

require "spec_helper" module CC::Analyzer::IssueValidations describe PathPresenceValidation do describe "#valid?" do it "returns true" do expect(PathPresenceValidation.new("location" => { "path" => "foo" })).to be_valid end it "returns false" do expect(PathPresenceValidation.new({})).not_to be_valid end end end end