spec/checker/modules/yaml_spec.rb in checker-0.6.4 vs spec/checker/modules/yaml_spec.rb in checker-0.6.5.rc1

- old
+ new

@@ -2,10 +2,10 @@ describe Checker::Modules::Yaml do it 'should only check .yaml and .yml files' do files = ['a.rb', 'b.js.erb', 'c.r', 'd.yml', 'e.yaml'] mod = Checker::Modules::Yaml.new(files) - mod.stub(:check_one_file).and_return(true) + mod.stub(:check_one_file).and_return(stub(:success? => true, :status => :ok)) mod.should_receive(:check_one_file).with('d.yml') mod.should_receive(:check_one_file).with('e.yaml') 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')