Sha256: 4d5f2293112b9ff7f6c2280693cd3733fdcc1918785d56e356e2a86b10ddbca9
Contents?: true
Size: 755 Bytes
Versions: 1
Compression:
Stored size: 755 Bytes
Contents
require File.join(File.dirname(__FILE__), 'spec_helper.rb') class Engine attr_accessor :state def turn_key! @key_turned = true Volute.apply(self, :key_turned) end def press_red_button! Volute.apply(self) end end describe 'Volute.apply' do before(:each) do Volute.clear! volute Engine do if attribute == :key_turned object.state = :running else object.state = :off end end @engine = Engine.new volute Package do volute do over if object.delivered end volute :location do (object.comment ||= []) << value end end end it 'should apply volutes' do @engine.turn_key! @engine.state.should == :running end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
volute-0.1.1 | spec/apply_spec.rb |