Sha256: 838611cbbf337c61344939550937677e1125389db298b84bc9bfbf5b9d86a94b
Contents?: true
Size: 712 Bytes
Versions: 5
Compression:
Stored size: 712 Bytes
Contents
require 'spec_helper' describe Checker::Modules::Conflict do it 'checks all files' do files = ['a.rb', 'b.js.erb', 'c.r', 'd.yaml', 'e.yml', 'f.coffee'] mod = Checker::Modules::Conflict.new(files) mod.stub(:check_one).and_return(stub(:success? => true, :status => :ok)) mod.should_receive(:check_one).exactly(6).times mod.check end it "does find git conflict" do files = [fixture("conflict", "with_conflict.rb")] mod = Checker::Modules::Conflict.new(files) mod.check.should be_false end it "does not find git conflict" do files = [fixture("conflict", "without_conflict.rb")] mod = Checker::Modules::Conflict.new(files) mod.check.should be_true end end
Version data entries
5 entries across 5 versions & 1 rubygems