Sha256: 0c6f9b3c1709d5fcd63b4ef12a81c0e0172efe31de749e66f0e340b53260aed3
Contents?: true
Size: 565 Bytes
Versions: 3
Compression:
Stored size: 565 Bytes
Contents
require 'spec_helper' describe Chouette::FileValidator do subject { Chouette::FileValidator.new("public") } before(:each) do subject.stub :execute! => true end describe "#validate" do let(:chouette_command) { mock :run! => true } before(:each) do subject.stub :chouette_command => chouette_command end it "should use specified file in -inputFile option" do chouette_command.should_receive(:run!).with(hash_including(:input_file => File.expand_path('file'))) subject.validate "file" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ninoxe-0.1.6 | spec/models/chouette/file_validator_spec.rb |
ninoxe-0.1.3 | spec/models/chouette/file_validator_spec.rb |
ninoxe-0.1.2 | spec/models/chouette/file_validator_spec.rb |