mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
14 lines
373 B
Ruby
14 lines
373 B
Ruby
# encoding: utf-8
|
|
|
|
require 'helper'
|
|
require 'vulcano/resource'
|
|
|
|
describe 'Vulcano::Resources::CSV' do
|
|
let(:resource) { load_resource('csv', 'example.csv') }
|
|
|
|
it 'verify csv parsing' do
|
|
_(resource.params).wont_equal nil
|
|
_(resource.send('1.addressable')).must_equal 'astrolabe'
|
|
_(resource.send('addressable')).must_equal %w{ast astrolabe berkshelf}
|
|
end
|
|
end
|