Sha256: ef8858a2b02bed74acbdb6f4e546b70dbf46fa04fb76e8044189c2e991e964e4
Contents?: true
Size: 632 Bytes
Versions: 2
Compression:
Stored size: 632 Bytes
Contents
require 'spec_helper' describe Chouette::FileValidator, :type => :model do subject { Chouette::FileValidator.new("public") } before(:each) do allow(subject).to receive_messages :execute! => true end describe "#validate" do let(:chouette_command) { double :run! => true } before(:each) do allow(subject).to receive_messages :chouette_command => chouette_command end it "should use specified file in -inputFile option" do expect(chouette_command).to receive(:run!).with(hash_including(:input_file => File.expand_path('file'))) subject.validate "file" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ninoxe-1.2.3 | spec/models/chouette/file_validator_spec.rb |
ninoxe-1.2.0 | spec/models/chouette/file_validator_spec.rb |