Sha256: 2f760e51030fc032354e9ed341e3a6e9a6948a56df5bebec77f35d5e3e7b249d

Contents?: true

Size: 969 Bytes

Versions: 27

Compression:

Stored size: 969 Bytes

Contents

require 'minitest/autorun'
require 'minitest/pride'
require_relative 'bob'

class BobTest < MiniTest::Unit::TestCase
  attr_reader :bob

  def setup
    @bob = Bob.new
  end

  def test_stating_something
    assert_equal 'Whatever.', bob.hey('Tom-ay-to, tom-aaaah-to.')
  end

  def test_shouting
    skip
    assert_equal 'Woah, chill out!', bob.hey('WATCH OUT!')
  end

  def test_asking_a_question
    skip
    assert_equal 'Sure.', bob.hey('Does this cryogenic chamber make me look fat?')
  end

  def test_talking_forcefully
    skip
    assert_equal 'Whatever.', bob.hey("Let's go make out behind the gym!")
  end

  def test_shouting_numbers
    skip
    assert_equal 'Woah, chill out!', bob.hey('1, 2, 3 GO!')
  end

  def test_shouting_with_special_characters
    skip
    assert_equal 'Woah, chill out!', bob.hey('ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!')
  end

  def test_silence
    skip
    assert_equal 'Fine, be that way.', bob.hey('')
  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
exercism-0.0.8 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.7 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.6 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.5 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.4 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.3 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.2 test/fixtures/approvals/alice_gets_bob_tests.approved.txt