Permalink
Browse files

Fix typo.

  • Loading branch information...
1 parent e077263 commit 4ad2d1fc044e7c276b4b68bb4dd4428c3ffbe2a2 @mynyml committed May 20, 2009
Showing with 9 additions and 9 deletions.
  1. +1 −1 README
  2. +8 −8 test/engines/test_simple_engine.rb
View
2 README
@@ -64,7 +64,7 @@ This allows, for instance, a new faster engine to be used by an app without
changes in the top level DSL.
Engines can also allow route definitions to include more (or less!) features.
-For example, the built-in SimpleEngine allows route variables and extention
+For example, the built-in SimpleEngine allows route variables and extension
handling. Others could add variable conditions ( :id => Integer ), mime-type
restrictions, etc.
@@ -33,7 +33,7 @@ class SimpleEngineTest < Test::Unit::TestCase
vars.should be([])
end
- test "treats extention as pattern part" do
+ test "treats extension as pattern part" do
path, vars = Base.match('/a/b.xml', ['/:foo/:bar', '/:foo/:bar.:type'])
path.should be('/:foo/:bar.:type')
vars.should be(['a','b','xml'])
@@ -65,43 +65,43 @@ class PatternTest < Test::Unit::TestCase
pattern.vars.should be(%w( foo bar baz ))
end
- test "pattern variables with extention" do
+ test "pattern variables with extension" do
path = Path.new('/foo/bar/baz.xml')
pattern = Pattern.new('/:a/:b/:c.:type')
assert pattern == path
pattern.vars.should be(%w( foo bar baz xml ))
end
- test "variable pattern matches a path with static extention" do
+ test "variable pattern matches a path with static extension" do
path = Path.new('/foo/bar.xml')
pattern = Pattern.new('/:foo/:bar.xml')
assert pattern == path
end
- test "variable pattern matches a path with variable extention" do
+ test "variable pattern matches a path with variable extension" do
path = Path.new('/foo/bar.xml')
pattern = Pattern.new('/:foo/:bar.:type')
assert pattern == path
end
- test "pattern without extention doesn't match path with extention" do
+ test "pattern without extension doesn't match path with extension" do
path = Path.new('/foo/bar.xml')
pattern = Pattern.new('/:foo/:bar')
assert pattern != path
end
- test "pattern with static extention doesn't match path without extention" do
+ test "pattern with static extension doesn't match path without extension" do
path = Path.new('/foo/bar')
pattern = Pattern.new('/:foo/:bar.xml')
assert pattern != path
end
- test "pattern with variable extention doesn't match path without extention" do
+ test "pattern with variable extension doesn't match path without extension" do
path = Path.new('/foo/bar')
pattern = Pattern.new('/:foo/:bar.:type')
@@ -116,7 +116,7 @@ class PatternTest < Test::Unit::TestCase
pattern.variables.should be(%w( foo bar.baz abc ))
end
- test "doesn't get confused with extention when path contains other dots" do
+ test "doesn't get confused with extension when path contains other dots" do
path = Path.new('/foo/bar.baz/abc.xml')
pattern = Pattern.new('/:a/:b/:c.:type')

0 comments on commit 4ad2d1f

Please sign in to comment.