Skip to content

Instantly share code, notes, and snippets.

@ukstudio
Last active March 21, 2016 13:20
Show Gist options
  • Save ukstudio/99a427a6dd9beaa3d29d to your computer and use it in GitHub Desktop.
Save ukstudio/99a427a6dd9beaa3d29d to your computer and use it in GitHub Desktop.
rspec power assert
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
@ch1c0t
Copy link

ch1c0t commented Mar 21, 2016

Thank you for sharing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment