Sha256: 7fee640d4becd6896f4a8a9219b041189e90e0a12007f7897746f8c37392df0e
Contents?: true
Size: 711 Bytes
Versions: 2
Compression:
Stored size: 711 Bytes
Contents
require File.join(File.dirname(__FILE__), 'spec_helper.rb') describe Volute do before(:each) do @invoice = Invoice.new @package = Package.new end describe 'when included' do it 'should grant getters' do @invoice.paid.should == nil end it 'should grants setters' do @invoice.paid = true @invoice.paid.should == true end it 'should allow setting in batch' do @package.vset(:location => 'ZRH', :delivered => false) @package.location.should == 'ZRH' @package.delivered.should == false end end describe 'setters' do it 'should return the new value' do (@invoice.paid = false).should == false end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
volute-0.1.1 | spec/include_volute_spec.rb |
volute-0.1.0 | spec/include_volute_spec.rb |