Sha256: 3c67c1a4423fd87a174f4d000be9767c1776cc3a882817e62796416a84365f47
Contents?: true
Size: 439 Bytes
Versions: 1
Compression:
Stored size: 439 Bytes
Contents
require 'spec_helper' require 'rprogram/option_list' describe OptionList do it "should behave like a Hash" do subject[:bla] = 2 subject[:bla].should == 2 end it "should provide reader and writer methods" do subject.bla = 5 subject.bla.should == 5 end it "should raise a NoMethodError exception when calling other methods" do lambda { subject.bla(5) }.should raise_error(NoMethodError) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rprogram-0.3.2 | spec/option_list_spec.rb |