Sha256: 991886cca2c6006f94effffa4c9da89d1965f9872fa3ea5a937d3f3d958d6535

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

require 'minitest/autorun'
require 'minitest/pride'

require_relative '../src/such_test_bot.rb'

class TestSuchTestBot <  Minitest::Test

  def test_generate_returns_hello_world
    assert_match /Hello/, SuchTestBot.generate
  end

  def test_generate_returns_less_than_140
    refute [*0...1000].map { |_| SuchTestBot.generate }.any?{ |t| t.length > 140 }
  end

  def test_hides_greetings
    refute_respond_to SuchTestBot, :greetings
    assert_instance_of String, SuchTestBot.send(:greetings)[0]
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter_bot_generator-0.2.3 such_test_bot/test/such_test_bot_test.rb