提交 3bc9c357 编写于 作者: C Carlos Antonio da Silva

Merge pull request #13111 from akshay-vishnoi/typo

Typo fixes [ci skip]
......@@ -174,12 +174,12 @@ def test_keep_and_discard_return_values
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
......
......@@ -311,7 +311,7 @@ def fetch(ftype, fmod)
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)
......
......@@ -93,7 +93,7 @@ def test_create_without_validation
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
......
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
\ No newline at end of file
......@@ -399,7 +399,7 @@ def index
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册