1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #13111 from akshay-vishnoi/typo

Typo fixes [ci skip]
This commit is contained in:
Carlos Antonio da Silva 2013-11-30 07:25:00 -08:00
commit 3bc9c35707
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)