Sha256: bcdbc6ba8d76322ba4a56cdd6b3ce06d9b847d28dc4c4e1b6324033fefe0d225
Contents?: true
Size: 500 Bytes
Versions: 9
Compression:
Stored size: 500 Bytes
Contents
require 'rprogram/option_list' require 'spec_helper' describe OptionList do before(:each) do @options = OptionList.new end it "should behave like a Hash" do @options[:bla] = 2 @options[:bla].should == 2 end it "should provide reader and writer methods" do @options.bla = 5 @options.bla.should == 5 end it "should raise a NoMethodError exception when calling other methods" do lambda { @options.bla(5) }.should raise_error(NoMethodError) end end
Version data entries
9 entries across 9 versions & 1 rubygems