diff options
Diffstat (limited to 'vendor/gems/ruby-openid-2.1.4/test/test_extras.rb')
-rw-r--r-- | vendor/gems/ruby-openid-2.1.4/test/test_extras.rb | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/vendor/gems/ruby-openid-2.1.4/test/test_extras.rb b/vendor/gems/ruby-openid-2.1.4/test/test_extras.rb deleted file mode 100644 index c30861cc4..000000000 --- a/vendor/gems/ruby-openid-2.1.4/test/test_extras.rb +++ /dev/null @@ -1,35 +0,0 @@ -require 'test/unit' -require 'openid/extras' - -class StartsWithTestCase < Test::Unit::TestCase - def test_starts_with - [["anything", ""], - ["something else", ""], - ["", ""], - ["foos", "foo"], - ].each{|str,target| assert(str.starts_with?(target))} - end - - def test_not_starts_with - [["x", "y"], - ["foos", "ball"], - ["xx", "xy"], - ].each{|str,target| assert(!(str.starts_with? target)) } - end - - def test_ends_with - [["anything", ""], - ["something else", " else"], - ["", ""], - ["foos", "oos"], - ].each{|str,target| assert(str.ends_with?(target))} - end - - def test_not_ends_with - [["x", "y"], - ["foos", "ball"], - ["xx", "xy"], - ["foosball", "foosbal"], - ].each{|str,target| assert(!(str.ends_with? target)) } - end -end |