Class: StatusTest

Inherits:
Test::Unit::TestCase show all
Includes:
OpenIdAuthentication
Defined in:
lib/vendor/plugins/open_id_authentication/test/status_test.rb

Constant Summary

Constants included from OpenIdAuthentication

OpenIdAuthentication::OPEN_ID_AUTHENTICATION_DIR

Instance Attribute Summary

Attributes included from Spec::Example::ExampleGroupMethods

#location

Attributes included from Spec::Example::Subject::ExampleGroupMethods

#explicit_subject_block

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

#its, #subject

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

#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

#create, #define

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_state_conditionalObject



6
7
8
9
10
11
12
13
# File 'lib/vendor/plugins/open_id_authentication/test/status_test.rb', line 6

def test_state_conditional
  assert Result[:missing].missing?
  assert Result[:missing].unsuccessful?
  assert !Result[:missing].successful?

  assert Result[:successful].successful?
  assert !Result[:successful].unsuccessful?
end