spec/gondler/gomfile_spec.rb in gondler-0.0.2 vs spec/gondler/gomfile_spec.rb in gondler-0.0.3

- old
+ new

@@ -11,9 +11,23 @@ end let(:path) { file.path } let(:content) { '' } after { file.close! } + describe '#initialize' do + let(:path) { 'Gomfile' } + + subject(:init) { described_class.new(path) } + + context 'without Gomfile' do + let(:path) { '' } + + it 'raises Gondler::Gomfile::NotFound' do + expect { init }.to raise_error(Gondler::Gomfile::NotFound) + end + end + end + describe '#gom' do let(:content) do <<-CONTENT gom 'github.com/golang/glog' CONTENT