Sha256: bd19c7c101747840aa75f9c09f7ec8ae7f3468e48885e28b34c5eb65618a526d
Contents?: true
Size: 811 Bytes
Versions: 3
Compression:
Stored size: 811 Bytes
Contents
require 'spec_helper' require 'json' describe Linodians do describe '#new' do it 'creates Group objects' do VCR.use_cassette('new_data') do expect(Linodians.new).to be_an_instance_of Linodians::Group end end end describe '#load_data' do let(:saved_data) { File.open('spec/examples/data') { |fh| JSON.load fh } } let(:new_data) { VCR.use_cassette('new_data') { Linodians.load_data } } it 'downloads data from linode.com' do expect(new_data).to be_an_instance_of Array expect(new_data.first).to be_an_instance_of Linodians::Employee end it 'accepts data as input' do data = Linodians.load_data(saved_data) expect(data).to be_an_instance_of Array expect(data.first).to be_an_instance_of Linodians::Employee end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
linodians-1.1.0 | spec/linodians_spec.rb |
linodians-1.0.1 | spec/linodians_spec.rb |
linodians-1.0.0 | spec/linodians_spec.rb |