summaryrefslogtreecommitdiffstats
path: root/spec/iota_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy.zurcher@heraeus.com>2015-01-12 10:13:58 +0100
committerJérémy Zurcher <jeremy.zurcher@heraeus.com>2015-01-12 10:13:58 +0100
commit4f065f63125907b3a4f72fbab8722c58ccab41c1 (patch)
tree3add5b782e0c86ffcf61d1b4e4dae769b7aa89c4 /spec/iota_spec.rb
parent6b69e8e7806ade8fc36505f9ca358edd1572acef (diff)
downloadedoors-ruby-4f065f63125907b3a4f72fbab8722c58ccab41c1.zip
edoors-ruby-4f065f63125907b3a4f72fbab8722c58ccab41c1.tar.gz
support rspec 3.0HEADmaster
Diffstat (limited to 'spec/iota_spec.rb')
-rw-r--r--spec/iota_spec.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/iota_spec.rb b/spec/iota_spec.rb
index 787d007..d257285 100644
--- a/spec/iota_spec.rb
+++ b/spec/iota_spec.rb
@@ -7,7 +7,7 @@ require 'spec_helper'
describe Edoors::Iota do
#
it "path construction" do
- class S<Edoors::Iota
+ class S < Edoors::Iota
def add_iota s
end
end
@@ -15,30 +15,30 @@ describe Edoors::Iota do
s1 = S.new 'room0', s0
s2 = S.new 'room1', s1
s3 = S.new 'door', s2
- s3.path.should eql 'top/room0/room1/door'
- lambda { Edoors::Iota.new('do/or0', nil) }.should raise_error(Edoors::Exception)
- lambda { Edoors::Iota.new('/door0', nil) }.should raise_error(Edoors::Exception)
- lambda { Edoors::Iota.new('door0/', nil) }.should raise_error(Edoors::Exception)
+ expect(s3.path).to eql 'top/room0/room1/door'
+ expect(lambda { Edoors::Iota.new('do/or0', nil) }).to raise_error(Edoors::Exception)
+ expect(lambda { Edoors::Iota.new('/door0', nil) }).to raise_error(Edoors::Exception)
+ expect(lambda { Edoors::Iota.new('door0/', nil) }).to raise_error(Edoors::Exception)
end
#
it 'start! should do nothing' do
- S.new('top', nil).start!.should be_nil
+ expect(S.new('top', nil).start!).to be_nil
end
#
it 'stop! should do nothing' do
- S.new('top', nil).stop!.should be_nil
+ expect(S.new('top', nil).stop!).to be_nil
end
#
it 'hibernate! should return empty hash' do
- S.new('top', nil).hibernate!.should be {}
+ expect(S.new('top', nil).hibernate!).to be {}
end
#
it 'resume! should do nothing' do
- S.new('top', nil).resume!(nil).should be_nil
+ expect(S.new('top', nil).resume!(nil)).to be_nil
end
#
it 'receive_p should raise NoMethodError' do
- lambda { Edoors::Iota.new('top', nil).receive_p nil }.should raise_error(NoMethodError)
+ expect(lambda { Edoors::Iota.new('top', nil).receive_p nil }).to raise_error(NoMethodError)
end
#
end