Sha256: 696685f9e6a8285657cee03dee99decb6fca039a4bd48a00183558db2c0ff53b
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
require 'rubygems' #require 'test/unit' require "minitest/autorun" require "minitest/should" $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'sentient_user' #class Test::Unit::TestCase #end class Person include SentientUser end class User include SentientUser end class AnonymousUser < User ; end ExceptedWords = %w{ hackery hacky monkeypatching ActiveRecord SentientUser SentientController initializer config rakefile bokmann sublicense MERCHANTABILITY NONINFRINGEMENT img src } def check_spelling_in_file(path_relative_to_gem_root) path = "#{File.dirname(__FILE__)}/../#{path_relative_to_gem_root}" begin aspell_output = `cat #{path} | aspell list` rescue => err warn "You probably don't have aspell. On mac: brew install aspell --lang=en" raise err end noticed_words = aspell_output.split($/) misspellings = noticed_words - ExceptedWords assert_equal [], misspellings end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
sentient_user_request_store-1.0.0 | test/helper.rb |
sentient_user-0.4.0 | test/helper.rb |