Sha256: b925acff41faff676c344828fce2c988af1d4462f6e748ba179cdd0c09e008b1
Contents?: true
Size: 740 Bytes
Versions: 2
Compression:
Stored size: 740 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe "Hash" do it "should preserve the contents of the original hash when safe_merge'ing" do a = {:a => "10", :b => "20"} b = {:b => "30", :c => "40"} a.safe_merge(b).should == {:a => "10", :b => "20", :c => "40"} end it "should preserve the contents of the original hash when safe_merge!'ing" do a = {:a => "10", :b => "20"} b = {:b => "30", :c => "40"} a.safe_merge!(b) a.should == {:a => "10", :b => "20", :c => "40"} end end describe "String" do it "should be able to convert a big string with \n to a runnable string" do str =<<-EOS echo 'hi' puts 'hi' EOS str.runnable.should == "echo 'hi' && puts 'hi'" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
auser-poolparty-0.0.9 | spec/core_spec.rb |
auser-poolparty-0.1.0 | spec/core_spec.rb |