Sha256: 88b3a6589e6214aea61da9834d2dcbca788ce470a170cfb85f9f83e6ef13e897

Contents?: true

Size: 465 Bytes

Versions: 104

Compression:

Stored size: 465 Bytes

Contents

module Terraspace::Tester
  class Meta
    # raw: {"rspec" => {root: "/path"}
    def initialize(raw)
      @raw = raw
    end

    def name
      name = @raw.keys.first
      unless name
        raise "No tester gem found. Are you sure you have the terraspace test gem configured in your Gemfile?"
      end
      name.camelize
    end
    alias_method :tester, :name

    def data
      @raw.values.first
    end

    def root
      data[:root]
    end
  end
end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
terraspace-2.2.17 lib/terraspace/tester/meta.rb
terraspace-2.2.16 lib/terraspace/tester/meta.rb
terraspace-2.2.15 lib/terraspace/tester/meta.rb
terraspace-2.2.14 lib/terraspace/tester/meta.rb
terraspace-2.2.13 lib/terraspace/tester/meta.rb
terraspace-2.2.12 lib/terraspace/tester/meta.rb
terraspace-2.2.11 lib/terraspace/tester/meta.rb
terraspace-2.2.10 lib/terraspace/tester/meta.rb
terraspace-2.2.9 lib/terraspace/tester/meta.rb
terraspace-2.2.8 lib/terraspace/tester/meta.rb
terraspace-2.2.7 lib/terraspace/tester/meta.rb
terraspace-2.2.6 lib/terraspace/tester/meta.rb
terraspace-2.2.5 lib/terraspace/tester/meta.rb
terraspace-2.2.4 lib/terraspace/tester/meta.rb
terraspace-2.2.3 lib/terraspace/tester/meta.rb
terraspace-2.2.2 lib/terraspace/tester/meta.rb
terraspace-2.2.1 lib/terraspace/tester/meta.rb
terraspace-2.2.0 lib/terraspace/tester/meta.rb
terraspace-2.1.7 lib/terraspace/tester/meta.rb
terraspace-2.1.6 lib/terraspace/tester/meta.rb