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