Sha256: c11a05a7ee4f75b236297b88afeeeea360383efdeab360ea9af104cfb4a0e2db

Contents?: true

Size: 505 Bytes

Versions: 5

Compression:

Stored size: 505 Bytes

Contents

require 'spec_helper'

describe Topographer::Importer::Input::SourceData do

  let(:with_no_data) do
    Topographer::Importer::Input::SourceData.new("foo", {})
  end

  let(:with_data) do
    Topographer::Importer::Input::SourceData.new("foo", {bar: 'baz'})
  end

  describe '#empty?' do
    it 'should return true if there is no data' do
      expect(with_no_data.empty?).to be_true
    end
    it 'should return false if there is data' do
      expect(with_data.empty?).to be_false
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
topographer-0.0.7 spec/topographer/importer/input/source_data_spec.rb
topographer-0.0.6 spec/topographer/importer/input/source_data_spec.rb
topographer-0.0.5 spec/topographer/importer/input/source_data_spec.rb
topographer-0.0.4 spec/topographer/importer/input/source_data_spec.rb
topographer-0.0.3 spec/Topographer/importer/input/source_data_spec.rb