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.28 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.27 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.26 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.25 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.24 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.23 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.22 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.21 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.20 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.19 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.18 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.17 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.16 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.15 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.14 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.13 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.12 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.11 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.10 test/fixtures/approvals/alice_gets_bob_tests.approved.txt
exercism-0.0.9 test/fixtures/approvals/alice_gets_bob_tests.approved.txt