Sha256: b24ba687893d68477e5a538020d592073ca28e22824989e3b831e213b9c9bd9d

Contents?: true

Size: 532 Bytes

Versions: 3

Compression:

Stored size: 532 Bytes

Contents

describe Terraspace::Seeder do
  let(:seeder) { described_class.new(mod) }
  let(:mod) do
    mod = double(:mod).as_null_object
    allow(mod).to receive(:cache_build_dir).and_return("spec/fixtures/cache_build_dir")
    mod
  end

  context "tf files" do
    it "parse" do
      parsed = seeder.parse
      expect(parsed).to eq(
        {"variable"=>
          {"project"=>{"description"=>"Project name. IE: test-project", "type"=>"string"},
          "name"=>{"default"=>"demo-name", "type"=>"string"}}}
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
terraspace-0.1.2 spec/terraspace/seeder_spec.rb
terraspace-0.1.1 spec/terraspace/seeder_spec.rb
terraspace-0.1.0 spec/terraspace/seeder_spec.rb