Sha256: c77aebdbcdf530f8a4660ac8c83f9a3baf93e5d0f9432a2e2a7a585df16dfc58
Contents?: true
Size: 560 Bytes
Versions: 2
Compression:
Stored size: 560 Bytes
Contents
require 'spec_helper' describe SonJay::ValueArray do it "is array-like" do expect( subject.to_ary ).to eq( subject ) expect( subject << 1 << 2 ).to eq( [1, 2] ) end describe '#sonj_content' do it "returns the instance itself" do expect( subject.sonj_content ).to eq( subject ) end end describe '#load_data' do it "replaces content with given array" do subject << 1 expect( subject.length ).to eq( 1 ) subject.load_data( [7, 8, 9] ) expect( subject.entries ).to eq( [7, 8, 9] ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
son_jay-0.2.0.alpha | spec/value_array_spec.rb |
son_jay-0.1.1.alpha | spec/value_array_spec.rb |