Class: NormalizeTest
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- NormalizeTest
- Includes:
- OpenIdAuthentication
- Defined in:
- lib/vendor/plugins/open_id_authentication/test/normalize_test.rb
Constant Summary collapse
- NORMALIZATIONS =
{ "openid.aol.com/nextangler" => "http://openid.aol.com/nextangler", "http://openid.aol.com/nextangler" => "http://openid.aol.com/nextangler", "https://openid.aol.com/nextangler" => "https://openid.aol.com/nextangler", "HTTP://OPENID.AOL.COM/NEXTANGLER" => "http://openid.aol.com/NEXTANGLER", "HTTPS://OPENID.AOL.COM/NEXTANGLER" => "https://openid.aol.com/NEXTANGLER", "loudthinking.com" => "http://loudthinking.com/", "http://loudthinking.com" => "http://loudthinking.com/", "http://loudthinking.com:80" => "http://loudthinking.com/", "https://loudthinking.com:443" => "https://loudthinking.com/", "http://loudthinking.com:8080" => "http://loudthinking.com:8080/", "techno-weenie.net" => "http://techno-weenie.net/", "http://techno-weenie.net" => "http://techno-weenie.net/", "http://techno-weenie.net " => "http://techno-weenie.net/", "=name" => "=name" }
Constants included from OpenIdAuthentication
OpenIdAuthentication::OPEN_ID_AUTHENTICATION_DIR
Instance Attribute Summary
Attributes included from Spec::Example::ExampleGroupMethods
Attributes included from Spec::Example::Subject::ExampleGroupMethods
Instance Method Summary collapse
Methods included from OpenIdAuthentication
normalize_identifier, normalize_url, store, store=
Methods inherited from Test::Unit::TestCase
example_method?, #initialize, #run, suite, test_method?
Methods included from Spec::Example::ExampleGroupMethods
build_description_from, #describe, #described_class, #described_type, #description, #description_args, #description_parts, #example, #example_group_hierarchy, #example_implementations, #example_proxies, #examples, #include_constants_in, #inherited, #it_should_behave_like, #let, #nested_descriptions, #notify, #number_of_examples, #options, #pending_implementation, #run, #set_description, #xexample
Methods included from Spec::Example::ArgsAndOptions
#add_options, #args_and_options, #set_location
Methods included from Spec::Example::PredicateMatchers
#define_methods_from_predicate_matchers, #predicate_matchers
Methods included from Spec::Example::Subject::ExampleGroupMethods
Methods included from Spec::Example::BeforeAndAfterHooks
#after_all_parts, #after_each_parts, after_suite_parts, #after_suite_parts, #append_after, #append_before, #before_all_parts, #before_each_parts, before_suite_parts, #before_suite_parts, #prepend_after, #prepend_before
Methods included from Spec::Example::ExampleMethods
#description, #eval_each_fail_fast, #eval_each_fail_slow, #execute, #expect, #initialize, #instance_variable_hash, #options, #run_after_each, #run_before_each, #set_instance_variables_from_hash, #violated
Methods included from Spec::Example::ModuleReopeningFix
#child_modules, #include, #included
Methods included from Spec::Example::Pending
Methods included from Spec::Matchers
#be, #be_a, #be_a_kind_of, #be_an_instance_of, #be_close, #change, clear_generated_description, #eql, #equal, #exception_from, #exist, #fail, #fail_with, generated_description, #have, #have_at_least, #have_at_most, #include, #map_specs, #match, #method_missing, #raise_error, #respond_to, #run_with, #satisfy, #simple_matcher, #throw_symbol, #with_ruby, #wrap_expectation
Methods included from Spec::Matchers::DSL
Methods included from Spec::Example::Subject::ExampleMethods
#__should_for_example_group__, #__should_not_for_example_group__, #should, #should_not, #subject
Constructor Details
This class inherits a constructor from Test::Unit::TestCase
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Spec::Matchers
Instance Method Details
#test_broken_open_id ⇒ Object
29 30 31 |
# File 'lib/vendor/plugins/open_id_authentication/test/normalize_test.rb', line 29 def test_broken_open_id assert_raises(InvalidOpenId) { normalize_identifier(nil) } end |
#test_normalizations ⇒ Object
23 24 25 26 27 |
# File 'lib/vendor/plugins/open_id_authentication/test/normalize_test.rb', line 23 def test_normalizations NORMALIZATIONS.each do |from, to| assert_equal to, normalize_identifier(from) end end |