Sha256: dab896a77c4384c3289be0e37650639a575995235d7301e37e57173d284666ed

Contents?: true

Size: 1.21 KB

Versions: 67

Compression:

Stored size: 1.21 KB

Contents

#!/usr/bin/env ruby
begin
  gem 'minitest', '>= 5.0.0'
  require 'minitest/autorun'
  require_relative 'hello_world'
rescue Gem::LoadError => e
  puts "\nMissing Dependency:\n#{e.backtrace.first} #{e.message}"
  puts 'Minitest 5.0 gem must be installed for the xRuby track.'
rescue LoadError => e
  puts "\nError:\n#{e.backtrace.first} #{e.message}"
  puts DATA.read
  exit 1
end

# Test data version:
# <%= sha1 %>
class HelloWorldTest < Minitest::Test<% test_cases.each do |test_case| %>
  def <%= test_case.test_name %><% if test_case.skipped? %>
    skip<% end %>
    assert_equal '<%= test_case.expected %>', <%= test_case.do %>
  end
<% end %>end

__END__

*****************************************************
You got an error, which is exactly as it should be.
This is the first step in the Test-Driven Development
(TDD) process.

The most important part of the error is

   cannot load such file

It's looking for a file named hello_world.rb that doesn't
exist yet.

To fix the error, create an empty file named hello_world.rb
in the same directory as the hello_world_test.rb file.

Then run the test again.

For more guidance as you work on this exercise, see
GETTING_STARTED.md.
*****************************************************

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
trackler-2.0.6.11 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.6.10 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.6.9 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.6.8 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.6.7 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.6.6 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.6.5 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.6.4 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.6.3 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.6.2 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.6.1 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.6.0 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.5.18 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.5.17 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.5.16 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.5.15 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.5.14 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.5.13 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.5.12 tracks/ruby/exercises/hello-world/example.tt
trackler-2.0.5.11 tracks/ruby/exercises/hello-world/example.tt