maybe fix tests for travis

This commit is contained in:
Norm MacLennan
2015-02-01 12:04:25 -05:00
parent 184b0b443c
commit 0fdf747de5

View File

@@ -1,4 +1,5 @@
require 'zanzibar/cli' require 'zanzibar/cli'
require 'zanzibar/defaults'
require 'rspec' require 'rspec'
require 'fakefs/spec_helpers' require 'fakefs/spec_helpers'
require 'webmock' require 'webmock'
@@ -39,8 +40,8 @@ describe Zanzibar::Cli do
end end
it 'should have a Zanzifile' do it 'should have a Zanzifile' do
expect(FakeFS::FileTest.file? File.join(source_root, 'spec', 'files', 'Zanzifile')).to be(true) expect(FakeFS::FileTest.file? Zanzibar::ZANZIFILE_NAME).to be(true)
expect(File.read(File.join(source_root, 'spec', 'files', 'Zanzifile'))).to include('zanzitest') expect(File.read(Zanzibar::ZANZIFILE_NAME)).to include('zanzitest')
end end
it 'should download a file' do it 'should download a file' do
@@ -50,9 +51,9 @@ describe Zanzibar::Cli do
end end
it 'should create a resolved file' do it 'should create a resolved file' do
expect(FakeFS::FileTest.file? 'Zanzifile.resolved').to be(false) expect(FakeFS::FileTest.file? Zanzibar::RESOLVED_NAME).to be(false)
expect { subject.bundle }.to output(/Finished downloading secrets/).to_stdout expect { subject.bundle }.to output(/Finished downloading secrets/).to_stdout
expect(FakeFS::FileTest.file? 'Zanzifile.resolved').to be(true) expect(FakeFS::FileTest.file? Zanzibar::RESOLVED_NAME).to be(true)
end end
it 'should not redownload files it already has' do it 'should not redownload files it already has' do