summaryrefslogtreecommitdiff
path: root/spec/ruby/library/digest/bubblebabble_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/digest/bubblebabble_spec.rb')
-rw-r--r--spec/ruby/library/digest/bubblebabble_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/library/digest/bubblebabble_spec.rb b/spec/ruby/library/digest/bubblebabble_spec.rb
index 7e06a974a3..44a9bf0e26 100644
--- a/spec/ruby/library/digest/bubblebabble_spec.rb
+++ b/spec/ruby/library/digest/bubblebabble_spec.rb
@@ -3,10 +3,10 @@ require 'digest/bubblebabble'
describe "Digest.bubblebabble" do
it "returns a String" do
- Digest.bubblebabble('').should be_an_instance_of(String)
+ Digest.bubblebabble('').should.instance_of?(String)
end
- it "returns a String in the The Bubble Babble Binary Data Encoding format" do
+ it "returns a String in the Bubble Babble Binary Data Encoding format" do
Digest.bubblebabble('').should == 'xexax'
Digest.bubblebabble('foo').should == 'xinik-zorox'
Digest.bubblebabble('bar').should == 'ximik-cosex'
@@ -20,10 +20,10 @@ describe "Digest.bubblebabble" do
end
it "raises a TypeError when passed nil" do
- lambda { Digest.bubblebabble(nil) }.should raise_error(TypeError)
+ -> { Digest.bubblebabble(nil) }.should.raise(TypeError)
end
- it "raises a TypeError when passed a Fixnum" do
- lambda { Digest.bubblebabble(9001) }.should raise_error(TypeError)
+ it "raises a TypeError when passed an Integer" do
+ -> { Digest.bubblebabble(9001) }.should.raise(TypeError)
end
end