Sha256: 37845497bf3322faed45f97e80ca3700101adb5d43cad830bc8ead34e639efb9
Contents?: true
Size: 787 Bytes
Versions: 1
Compression:
Stored size: 787 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 specify "type" do datum = Conglomerate::Datum.new(:name => "name") expect(datum).to respond_to(:"type=") expect { datum.type = 3 }.to raise_error end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
conglomerate-0.13.0 | spec/datum_spec.rb |