Sha256: afae5e1abd3cbe6e16a06484a8c44bab83d0c1ab11312fc5660df992a62324dd
Contents?: true
Size: 742 Bytes
Versions: 2
Compression:
Stored size: 742 Bytes
Contents
require "spec_helper" describe Checker::Modules::Coffeescript do it "should only check .coffee files" do files = ["a.rb", "b.js.erb", "c.r", "d.yml", "e.yaml", "f.coffee"] mod = Checker::Modules::Coffeescript.new(files) expect(mod).to receive(:check_for_executable).and_return(true) expect(mod).to receive(:check_one_file).with("f.coffee").and_return(double(success?: true, status: :ok)) expect(mod).not_to receive(:check_one_file).with("e.yaml") expect(mod).not_to receive(:check_one_file).with("d.yml") expect(mod).not_to receive(:check_one_file).with("a.rb") expect(mod).not_to receive(:check_one_file).with("b.js.erb") expect(mod).not_to receive(:check_one_file).with("c.r") mod.check end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
checker-0.8.0.beta2 | spec/checker/modules/coffeescript_spec.rb |
checker-0.8.0.beta | spec/checker/modules/coffeescript_spec.rb |