Skip to content

Instantly share code, notes, and snippets.

@staszak
Last active August 29, 2015 13:56
Show Gist options
  • Save staszak/9177092 to your computer and use it in GitHub Desktop.
Save staszak/9177092 to your computer and use it in GitHub Desktop.
Simple Quest Game
require_relative "simple_quest"
game = SimpleQuest.new
class Grue
def initialize
end
end
class Map
def initialize
end
end
class Player
def initialize
end
end
class Room
def initialize
end
end
class SimpleQuest
def initialize
end
end
require_relative "grue"
require "test/unit"
class TestGrue < Test::Unit::TestCase
def test_class
assert_instance_of( Grue, Grue.new )
end
end
require_relative "map"
require "test/unit"
class TestMap < Test::Unit::TestCase
def test_class
assert_instance_of( Map, Map.new )
end
end
require_relative "player"
require "test/unit"
class TestPlayer < Test::Unit::TestCase
def test_class
assert_instance_of( Player, Player.new )
end
end
require_relative "room"
require "test/unit"
class TestRoom < Test::Unit::TestCase
def test_class
assert_instance_of( Room, Room.new )
end
end
require_relative "simple_quest"
require "test/unit"
class TestSimpleQuest < Test::Unit::TestCase
def test_class
assert_instance_of( SimpleQuest, SimpleQuest.new )
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment