Sha256: b475d1c4211840d1b1e1c00ba37a02d5811c8f798c749bf6ae75342a39211535
Contents?: true
Size: 763 Bytes
Versions: 7
Compression:
Stored size: 763 Bytes
Contents
require 'spec_helper' describe Apiary::Common do describe 'Validate apib files' do it 'test existing file' do common = Apiary::Common.new expect(common.validate_apib_file('features/fixtures/apiary.apib')).to be_truthy end it 'test non existing file' do common = Apiary::Common.new expect {common.validate_apib_file('features/fixtures/apiary.xxx')}.to raise_error(/file hasn't been found/) end end describe 'Test get file with and without BOM' do it 'get file and compare' do common = Apiary::Common.new file1 = common.get_apib_file('features/fixtures/apiary.apib') file2 = common.get_apib_file('features/fixtures/apiary_with_bom.apib') expect(file1).to eq(file2) end end end
Version data entries
7 entries across 7 versions & 1 rubygems