Sha256: b2a0e5fe59943198398faa21f0781bcf98f74672d3ed2f5a4914d3abfe515c76
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
require "spec_helper" describe Checker::Modules::Pry do it "should check all files" do files = ["a.rb", "b.js.erb", "c.r", "d.yaml", "e.yml", "f.coffee"] mod = Checker::Modules::Pry.new(files) allow(mod).to receive(:check_one).and_return(double(success?: true, status: :ok)) expect(mod).to receive(:check_one).exactly(6).times mod.check end it "should not find the pry or remote_pry" do files = [fixture("pry", "without_pry.rb")] mod = Checker::Modules::Pry.new(files) expect(mod.check).to be true end it "should find the pry or remote_pry" do files = [fixture("pry", "with_pry.rb")] mod = Checker::Modules::Pry.new(files) expect(mod.check).to be false end it "should find the pry or remote_pry" do files = [fixture("pry", "with_pry_remote.rb")] mod = Checker::Modules::Pry.new(files) expect(mod.check).to be false end it "should find the pry or remote_pry" do files = [fixture("pry", "with_both.rb")] mod = Checker::Modules::Pry.new(files) expect(mod.check).to be false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
checker-0.8.0.beta2 | spec/checker/modules/pry_spec.rb |
checker-0.8.0.beta | spec/checker/modules/pry_spec.rb |