Sha256: 97ed1bab3690c596332dd5a3a59b0a92dc749b4761125b2af27cbc141dd7714e

Contents?: true

Size: 610 Bytes

Versions: 11

Compression:

Stored size: 610 Bytes

Contents

require_relative "spec_helper"
require_relative "../lib/conglomerate"

describe Conglomerate::Datum do
  context "required attributes" do
    specify "name" do
      expect { Conglomerate::Datum.new }.to raise_error("MissingAttribute")
    end
  end

  context "optional attributes" do
    specify "value" do
      datum = Conglomerate::Datum.new(:name => "name")
      expect(datum).to respond_to(:"value=")
    end

    specify "prompt" do
      datum = Conglomerate::Datum.new(:name => "name")
      expect(datum).to respond_to(:"prompt=")
      expect { datum.prompt = 3 }.to raise_error
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
conglomerate-0.16.0 spec/datum_spec.rb
conglomerate-0.15.0 spec/datum_spec.rb
conglomerate-0.14.0 spec/datum_spec.rb
conglomerate-0.12.1 spec/datum_spec.rb
conglomerate-0.12.0 spec/datum_spec.rb
conglomerate-0.11.1 spec/datum_spec.rb
conglomerate-0.11.0 spec/datum_spec.rb
conglomerate-0.10.0 spec/datum_spec.rb
conglomerate-0.9.0 spec/datum_spec.rb
conglomerate-0.8.1 spec/datum_spec.rb
conglomerate-0.8.0 spec/datum_spec.rb