Sha256: e49c48206fd4474bf7f14bd5fdb0564e37e11b6f0067abdebf51b605b3e54f56
Contents?: true
Size: 657 Bytes
Versions: 5
Compression:
Stored size: 657 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) mod.stub(:check_for_executable).and_return(true) mod.should_receive(:check_one_file).with('f.coffee') mod.should_not_receive(:check_one_file).with('e.yaml') mod.should_not_receive(:check_one_file).with('d.yml') mod.should_not_receive(:check_one_file).with('a.rb') mod.should_not_receive(:check_one_file).with('b.js.erb') mod.should_not_receive(:check_one_file).with('c.r') mod.check end end
Version data entries
5 entries across 5 versions & 1 rubygems