-
-
Save nosolopau/80b331773a46f6b5181d to your computer and use it in GitHub Desktop.
This file contains 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
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