spec/firebrew/firefox/extension_spec.rb in firebrew-0.1.0 vs spec/firebrew/firefox/extension_spec.rb in firebrew-0.1.1

- old
+ new

@@ -44,11 +44,17 @@ expect(subject[0]).to eq(self.extensions[0]) expect(subject[1]).to eq(self.extensions[1]) end context 'when not existed `extension.json`' do - before {FileUtils.rm_f './tmp/extensions.json'} - it { expect{subject}.to raise_error(Firebrew::ExtensionsFileNotFoundError) } + before do + FileUtils.rm_f './tmp/extensions.json' + subject + end + + it 'should create that' do + expect(File.exists? './tmp/extensions.json').to be_truthy + end end end describe '#find(name)' do subject {super().find self.name}