diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-13 00:21:55 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-13 00:21:55 +0200 |
commit | 820be8a21f9d5d80f33903783a8067d5cf49904c (patch) | |
tree | 79467ad83c73dac9e16a3e6e8fad85981a417e11 | |
parent | 78ec406e4ed3edc01591fecd419784e7898c6eec (diff) | |
download | edoors-ruby-820be8a21f9d5d80f33903783a8067d5cf49904c.zip edoors-ruby-820be8a21f9d5d80f33903783a8067d5cf49904c.tar.gz |
specs: sed -i 's/ERROR_FIELD/FIELD_ERROR_MSG/'
-rw-r--r-- | spec/room_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/room_spec.rb b/spec/room_spec.rb index 3e385e3..6a116d7 100644 --- a/spec/room_spec.rb +++ b/spec/room_spec.rb @@ -64,7 +64,7 @@ describe EvenDoors::Room do p.set_dst! 'get', 'room/door' room.send_p p p.action.should eql EvenDoors::ACT_ERROR - p[EvenDoors::ERROR_FIELD].should eql EvenDoors::ERROR_ROUTE_NS + p[EvenDoors::FIELD_ERROR_MSG].should eql EvenDoors::ERROR_ROUTE_NS p.dst.should be room.spin end # @@ -74,7 +74,7 @@ describe EvenDoors::Room do p.src = Fake.new 'fake', @spin room.send_p p p.action.should eql EvenDoors::ACT_ERROR - p[EvenDoors::ERROR_FIELD].should eql EvenDoors::ERROR_ROUTE_NDNL + p[EvenDoors::FIELD_ERROR_MSG].should eql EvenDoors::ERROR_ROUTE_NDNL p.dst.should be p.src end # @@ -86,7 +86,7 @@ describe EvenDoors::Room do p.set_dst! 'get', 'noroom/door' room1.send_p p p.action.should eql EvenDoors::ACT_ERROR - p[EvenDoors::ERROR_FIELD].should eql EvenDoors::ERROR_ROUTE_TRWR + p[EvenDoors::FIELD_ERROR_MSG].should eql EvenDoors::ERROR_ROUTE_TRWR p.dst.should be p.src end # @@ -97,7 +97,7 @@ describe EvenDoors::Room do p.set_dst! 'get', 'dom0/room/nodoor' room.send_p p p.action.should eql EvenDoors::ACT_ERROR - p[EvenDoors::ERROR_FIELD].should eql EvenDoors::ERROR_ROUTE_RRWD + p[EvenDoors::FIELD_ERROR_MSG].should eql EvenDoors::ERROR_ROUTE_RRWD p.dst.should be p.src end # @@ -109,7 +109,7 @@ describe EvenDoors::Room do p.set_dst! 'get', 'dom0/room0/nodoor' room1.send_p p p.action.should eql EvenDoors::ACT_ERROR - p[EvenDoors::ERROR_FIELD].should eql EvenDoors::ERROR_ROUTE_RRWD + p[EvenDoors::FIELD_ERROR_MSG].should eql EvenDoors::ERROR_ROUTE_RRWD p.dst.should be p.src end # @@ -147,7 +147,7 @@ describe EvenDoors::Room do p.set_dst! 'get', 'dom0/room0/room1/door01' room3.send_p p p.action.should eql EvenDoors::ACT_ERROR - p[EvenDoors::ERROR_FIELD].should eql EvenDoors::ERROR_ROUTE_RRNDD + p[EvenDoors::FIELD_ERROR_MSG].should eql EvenDoors::ERROR_ROUTE_RRNDD p.dst.should be p.src end # @@ -222,7 +222,7 @@ describe EvenDoors::Room do p = @spin.require_p EvenDoors::Particle room0.send_sys_p p p.action.should eql EvenDoors::ACT_ERROR - p[EvenDoors::ERROR_FIELD].should eql EvenDoors::ERROR_ROUTE_SND + p[EvenDoors::FIELD_ERROR_MSG].should eql EvenDoors::ERROR_ROUTE_SND end # it "system routing success: action only" do |