Last active
March 21, 2016 13:20
-
-
Save ukstudio/99a427a6dd9beaa3d29d to your computer and use it in GitHub Desktop.
rspec power assert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rspec' | |
require 'minitest' | |
require 'minitest-power_assert' | |
module Minitest | |
module Assertions | |
prepend Minitest::PowerAssert::Assertions | |
end | |
end | |
RSpec.configure do |config| | |
config.expect_with :minitest | |
end | |
describe 'Test' do | |
it 'test' do | |
assert { 1.to_s.class == 1.to_i.class } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for sharing it.