Typo fixes [ci skip]

This commit is contained in:
Akshay Vishnoi 2013-11-30 20:27:01 +05:30
parent e6bccef3d0
commit e0326f56b4
5 changed files with 7 additions and 7 deletions

View File

@ -174,12 +174,12 @@ class FlashTest < ActionController::TestCase
flash.update(:foo => :foo_indeed, :bar => :bar_indeed)
assert_equal(:foo_indeed, flash.discard(:foo)) # valid key passed
assert_nil flash.discard(:unknown) # non existant key passed
assert_nil flash.discard(:unknown) # non existent key passed
assert_equal({:foo => :foo_indeed, :bar => :bar_indeed}, flash.discard().to_hash) # nothing passed
assert_equal({:foo => :foo_indeed, :bar => :bar_indeed}, flash.discard(nil).to_hash) # nothing passed
assert_equal(:foo_indeed, flash.keep(:foo)) # valid key passed
assert_nil flash.keep(:unknown) # non existant key passed
assert_nil flash.keep(:unknown) # non existent key passed
assert_equal({:foo => :foo_indeed, :bar => :bar_indeed}, flash.keep().to_hash) # nothing passed
assert_equal({:foo => :foo_indeed, :bar => :bar_indeed}, flash.keep(nil).to_hash) # nothing passed
end

View File

@ -311,7 +311,7 @@ module ActiveRecord
h[k] = OID::Identity.new
}
# Register an OID type named +name+ with a typcasting object in
# Register an OID type named +name+ with a typecasting object in
# +type+. +name+ should correspond to the `typname` column in
# the `pg_type` table.
def self.register_type(name, type)

View File

@ -93,7 +93,7 @@ class ValidationsTest < ActiveRecord::TestCase
assert reply.save(:validate => false)
end
def test_validates_acceptance_of_with_non_existant_table
def test_validates_acceptance_of_with_non_existent_table
Object.const_set :IncorporealModel, Class.new(ActiveRecord::Base)
assert_nothing_raised ActiveRecord::StatementInvalid do

View File

@ -1,7 +1,7 @@
class Array
# The human way of thinking about adding stuff to the end of a list is with append
# The human way of thinking about adding stuff to the end of a list is with append.
alias_method :append, :<<
# The human way of thinking about adding stuff to the beginning of a list is with prepend
# The human way of thinking about adding stuff to the beginning of a list is with prepend.
alias_method :prepend, :unshift
end

View File

@ -399,7 +399,7 @@ YAML
assert $plugin_initializer
end
test "midleware referenced in configuration" do
test "middleware referenced in configuration" do
@plugin.write "lib/bukkits.rb", <<-RUBY
class Bukkits
def initialize(app)