Skip to content

Instantly share code, notes, and snippets.

@ch1ago
Created May 29, 2016 02:37
Show Gist options
  • Save ch1ago/34b2af4ce8f8e948d0171a711f3b2f09 to your computer and use it in GitHub Desktop.
Save ch1ago/34b2af4ce8f8e948d0171a711f3b2f09 to your computer and use it in GitHub Desktop.
ruby with tests
# 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