Created
May 29, 2016 02:37
-
-
Save ch1ago/34b2af4ce8f8e948d0171a711f3b2f09 to your computer and use it in GitHub Desktop.
ruby with tests
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
# ruby abc.rb | |
require 'minitest' | |
require 'minitest/autorun' | |
class Abc | |
def a | |
return 'aaa' | |
end | |
end | |
class TestAbc < Minitest::Spec | |
def test_a | |
abc = Abc.new | |
assert_equal 'aaa', abc.a | |
end | |
def test_b | |
assert true | |
end | |
def test_c | |
assert false | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment