Sha256: 82a020b8866a70bfab5a38254004758cf02c58c7556d9005163dfd72a0b92d66
Contents?: true
Size: 667 Bytes
Versions: 6
Compression:
Stored size: 667 Bytes
Contents
describe "Ruby character strings" do it "don't get interpolated when put in single quotes" do @ip = 'xxx' '#{@ip}'.should == '#{@ip}' end it 'get interpolated with #{} when put in double quotes' do @ip = 'xxx' "#{@ip}".should == "xxx" end it "interpolate instance variables just with the # character" #do # @ip = "xxx" # "#@ip".should == "xxx" # end it "interpolate global variables just with the # character" it "interpolate class variables with just the # character" it "allow underscore as part of a variable name in a simple interpolation" it "have characters [.(=?!# end simple # interpolation" end
Version data entries
6 entries across 6 versions & 1 rubygems