git ssb

0+

dangerousbeans / %aPBe2k3ugtjBr4rrsU1…



Commit e718c7b205b34b22bbd25c4bed4e731463e6a356

Removes deprecation warnings

  # Link to discussion: https://github.com/rspec/rspec-expectations/issues/231
  # Link to changelog: https://github.com/rspec/rspec-expectations/blob/master/Changelog.md#2140rc1--2013-05-27
Bruno Henrique - Garu committed on 5/14/2014, 1:30:23 AM
Parent: f167f92c702ea6b01a9995e3089f49b95c34eecb

Files changed

spec/bcrypt/engine_spec.rbchanged
spec/bcrypt/password_spec.rbchanged
spec/bcrypt/engine_spec.rbView
@@ -57,10 +57,10 @@
5757 end
5858
5959 specify "should raise an InvalidSecret error if the secret is invalid" do
6060 lambda { BCrypt::Engine.hash_secret(MyInvalidSecret.new, @salt) }.should raise_error(BCrypt::Errors::InvalidSecret)
61- lambda { BCrypt::Engine.hash_secret(nil, @salt) }.should_not raise_error(BCrypt::Errors::InvalidSecret)
62- lambda { BCrypt::Engine.hash_secret(false, @salt) }.should_not raise_error(BCrypt::Errors::InvalidSecret)
61+ expect { BCrypt::Engine.hash_secret(nil, @salt) }.not_to raise_error
62+ expect { BCrypt::Engine.hash_secret(false, @salt) }.not_to raise_error
6363 end
6464
6565 specify "should call #to_s on the secret and use the return value as the actual secret data" do
6666 BCrypt::Engine.hash_secret(false, @salt).should == BCrypt::Engine.hash_secret("false", @salt)
spec/bcrypt/password_spec.rbView
@@ -15,11 +15,11 @@
1515 lambda { BCrypt::Password.new(@password) }.should_not raise_error
1616 end
1717
1818 specify "should behave normally if the secret is not a string" do
19- lambda { BCrypt::Password.create(nil) }.should_not raise_error(BCrypt::Errors::InvalidSecret)
20- lambda { BCrypt::Password.create({:woo => "yeah"}) }.should_not raise_error(BCrypt::Errors::InvalidSecret)
21- lambda { BCrypt::Password.create(false) }.should_not raise_error(BCrypt::Errors::InvalidSecret)
19+ expect { BCrypt::Password.create(nil) }.not_to raise_error
20+ expect { BCrypt::Password.create({:woo => "yeah"}) }.not_to raise_error
21+ expect { BCrypt::Password.create(false) }.not_to raise_error
2222 end
2323
2424 specify "should tolerate empty string secrets" do
2525 lambda { BCrypt::Password.create( "\n".chop ) }.should_not raise_error

Built with git-ssb-web