Created
December 14, 2015 21:15
-
-
Save noili/97b3bad4a9e058b8b843 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env ruby | |
gem 'minitest', '>= 5.0.0' | |
require 'minitest/autorun' | |
require_relative 'princess' | |
require 'pry' | |
class ArrayTest < Minitest::Test | |
def test_princess_play | |
assert_output('You are knocked from the round.') { Princess.play } | |
end | |
end | |
class Princess | |
def self.play | |
puts "You are knocked from the round." | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment