Sha256: 2cef34c89e77bd6be500e924f96a725891cbe3e07893c18f1af5b16b6bea5544
Contents?: true
Size: 1.02 KB
Versions: 7
Compression:
Stored size: 1.02 KB
Contents
# describe 'Gorillib::Model::Overlay' do # # # context '.layer' do # it 'behaves like a gettersetter collection method' # end # # context '.layers' do # it "returns the layered objects, highest-priority first." # end # # context 'setting an attribute' do # it 'sets the value on the object' # it 'leaves the other layers intact' # end # # context "reading an attribute (with no resolution block)" do # it "if set, returns the object's value" # it "if unset, returns the first value that is found" # it "if unset, and no layer has a value, returns nil" # end # # context "reading an attribute (with resolution block)" do # it "calls the resolution block with the values from all layers in order" # it "returns the value the block responds with" # end # # end # # # class Params # end # # class CommandlineParams # end # # class EnvVarParams # end # # class CompositeParams # layer CommandlineParams, [:x, :y, :z] # layer EnvVarParams, [:x, :y, :z] # # field :x # field :y # end
Version data entries
7 entries across 7 versions & 1 rubygems