inspec/test/unit/resource_csv_test.rb

15 lines
373 B
Ruby
Raw Normal View History

2015-09-21 08:31:31 +00:00
# encoding: utf-8
require 'helper'
require 'vulcano/resource'
2015-09-21 10:30:58 +00:00
describe 'Vulcano::Resources::CSV' do
2015-09-22 16:31:21 +00:00
let(:resource) { load_resource('csv', 'example.csv') }
2015-09-21 08:31:31 +00:00
2015-09-22 16:33:05 +00:00
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}
2015-09-21 08:31:31 +00:00
end
end