Skip to content

Instantly share code, notes, and snippets.

@phiggins
Created October 3, 2011 03:41
Show Gist options
  • Save phiggins/1258386 to your computer and use it in GitHub Desktop.
Save phiggins/1258386 to your computer and use it in GitHub Desktop.
Demo of using the gem version of minitest.
class User
def valid?
true
end
end
gem 'minitest'
require 'minitest/autorun'
describe User do
it "is valid" do
user = User.new
user.must_be :valid?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment