Sha256: f4b1e4be0046c3fa18b8fc01c47816b6b4c539da8e2516ce4774e11cc310eb33

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.2 lib/twitter_bot_generator/templates/test/userstream-test_bot_test.rb.erb