Sha256: b3e5782acbfdb037ce6a6a425e443d7c2a2ee12209a11cb0cffb886c7b698d5a

Contents?: true

Size: 631 Bytes

Versions: 1

Compression:

Stored size: 631 Bytes

Contents

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

require_relative '../src/<%= bot_name %>.rb'

class Test<%= class_name %> <  Minitest::Test

  def test_reverses_hello_world
    assert_match (<%= class_name %>.respond_to 'hello world'), 'dlrow olleh'
  end

  def test_responds_with_less_than_140
    assert_equal false, [*0...1000].map{ |_| <%= class_name %>.respond_to 'hello world' + rand.to_s }.any?{ |t| t.length > 140 }
  end

  def test_responds_with_less_than_140_even_to_greater_than_140
    assert_equal false, [*0...1000].map { |_| <%= class_name %>.respond_to  'hello' * 30 }.any?{ |t| t.length > 140 }
  end


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter_bot_generator-0.2.3 lib/twitter_bot_generator/templates/test/userstream-test_bot_test.rb.erb