The test will only run when run interactively (i.e. ruby ).
class Word
def length
10
end
end
if __FILE__ == $0
require 'minitest/spec'
require 'minitest/autorun'
describe Word do
it "should be a certain size" do
word = Word.new
word.length.must_equal 10
end
end
end