Sha256: c7388d57e418ef09e4671bd634078898b6af4006f20c709fefc8310445701029

Contents?: true

Size: 1.12 KB

Versions: 45

Compression:

Stored size: 1.12 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

# Common test data version: 1.0.0 4b9ae53
class HelloWorldTest < Minitest::Test
  def test_say_hi
    # skip
    assert_equal "Hello, World!", HelloWorld.hello
  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

45 entries across 45 versions & 1 rubygems

Version Path
trackler-2.1.0.53 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.52 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.51 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.50 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.49 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.48 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.47 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.46 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.45 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.44 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.43 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.42 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.41 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.40 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.39 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.38 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.37 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.36 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.34 tracks/ruby/exercises/hello-world/hello_world_test.rb
trackler-2.1.0.33 tracks/ruby/exercises/hello-world/hello_world_test.rb