Created
October 3, 2011 03:41
-
-
Save phiggins/1258386 to your computer and use it in GitHub Desktop.
Demo of using the gem version of minitest.
This file contains hidden or 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
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