Sha256: 50f63ceb1b1d05c613c2c0da0ea4fc5e322fd5978ba8a96d1ed6434d6cbb247b
Contents?: true
Size: 505 Bytes
Versions: 1
Compression:
Stored size: 505 Bytes
Contents
require 'spec_helper' RSpec.describe Pluginscan::VariableCheck do describe "#ignore?" do it "returns true when there is 1 match and it is known to be safe" do expect(described_class.new({}).ignore?("$_GET", "if ( isset( $_GET['action'] ) ) {")).to eq true end # it "returns false when there are 2 matches and only 1 is known safe" do # expect(described_class.match_count("$_POST", "$submitted = isset( $_POST[$tagname] ) ? $_POST[$tagname] : '';")).to eq 2 # end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pluginscan-0.9.0 | spec/pluginscan/issues_scanner/variable_check_spec.rb |