Skip to content

Instantly share code, notes, and snippets.

@nosolopau
Created February 5, 2016 15:57
Show Gist options
  • Save nosolopau/80b331773a46f6b5181d to your computer and use it in GitHub Desktop.
Save nosolopau/80b331773a46f6b5181d to your computer and use it in GitHub Desktop.
require_relative "echo"
require "minitest/autorun"
require 'securerandom'
class TestEcho < Minitest::Test
def setup
@echo = Echo.new
end
def test_simple_scenario
assert_equal 'one', @echo.one
assert_equal 'two', @echo.two
end
def test_for_smart_asses
string = SecureRandom.hex
assert_equal string, @echo.public_send(string)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment