Sha256: 4c266d817646d92c44a4294e4fe8a09b8f3d19371a029837656fbd696805c59f
Contents?: true
Size: 666 Bytes
Versions: 6
Compression:
Stored size: 666 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require File.expand_path(File.dirname(__FILE__) + '/shared_etap_hash_spec') describe Etapper::DefinedValueHash do before(:each) do @basearray = YAML.load_file(File.dirname(__FILE__) + '/fixtures/defined_values_api.yml') @etaphash = Etapper::DefinedValueHash.new(@basearray) @keymethod = :fieldName @valmethod = :value @secondarymethod = :valueRef end it_should_behave_like "an implementation of EtapHash" it "can append values when they already exist" do @etaphash.add_or_append(:gender, 'Male') @etaphash[:gender].should == ['Female','Male'] end end
Version data entries
6 entries across 6 versions & 1 rubygems