Upgrade rspec to 3.4.0.

This commit is contained in:
Guo Xiang Tan
2016-05-30 11:38:04 +08:00
parent e11c83341c
commit cb5be1fe8f
15 changed files with 40 additions and 44 deletions

View File

@ -204,7 +204,7 @@ describe User do
describe 'has_trust_level?' do
it "raises an error with an invalid level" do
expect { user.has_trust_level?(:wat) }.to raise_error
expect { user.has_trust_level?(:wat) }.to raise_error(InvalidTrustLevel)
end
it "is true for your basic level" do
@ -1106,7 +1106,7 @@ describe User do
end
it "raises an error when passwords are too long" do
expect { hash(too_long, 'gravy') }.to raise_error
expect { hash(too_long, 'gravy') }.to raise_error(StandardError)
end
end