Class: ConcordionTestCase
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- ConcordionTestCase
- Extended by:
- Concordion::ConfigMethods
- Defined in:
- lib/concordion_test_case.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arg, conf = default_config()) ⇒ ConcordionTestCase
constructor
A new instance of ConcordionTestCase.
- #is_trivial? ⇒ Boolean
- #test_something_trivial_to_shut_runit_up ⇒ Object
- #trivial ⇒ Object
Methods included from Concordion::ConfigMethods
bind_test_method_to, default_config
Methods included from Concordion::InternalTestMethods
#assert_concordion_document, #assert_no_failures, #parse_spec, #report_spec, #run_spec, #show_failures
Methods included from Concordion::Utility
#concordion_arguments, #concordion_cmd_attr_exists?, #concordion_cmd_attr_for, #concordion_property_reference, #concordion_variable_name, #has_property_reference?, #instrumentation
Methods included from Concordion::StringUtility
#assignment, #attr_writer_method?, #concordion_assignment, #concordion_method_name, #ends_in_empty_parens?, #escape_single_quotes, #has_arguments?, #has_assignment?, #is_direct_method_call?
Methods included from Concordion::PluralToSingularUtility
Methods included from Concordion::SnakeCaseUtility
#snake_case, #snake_cased_goldmaster_name, #snake_cased_test_name
Methods included from Concordion::Constants
#concordion_command_attributes, #supported?
Constructor Details
#initialize(arg, conf = default_config()) ⇒ ConcordionTestCase
Returns a new instance of ConcordionTestCase.
18 19 20 21 |
# File 'lib/concordion_test_case.rb', line 18 def initialize(arg, conf = default_config()) super(arg) @config = default_config.merge(conf) end |
Class Method Details
.inherited(subclass) ⇒ Object
13 14 15 16 |
# File 'lib/concordion_test_case.rb', line 13 def self.inherited(subclass) original_inherited(subclass) bind_test_method_to(subclass, default_config) end |
.original_inherited ⇒ Object
10 |
# File 'lib/concordion_test_case.rb', line 10 alias_method :original_inherited, :inherited |
Instance Method Details
#is_trivial? ⇒ Boolean
31 32 33 |
# File 'lib/concordion_test_case.rb', line 31 def is_trivial? @trivial end |
#test_something_trivial_to_shut_runit_up ⇒ Object
23 24 25 26 |
# File 'lib/concordion_test_case.rb', line 23 def test_something_trivial_to_shut_runit_up assert true trivial end |
#trivial ⇒ Object
28 29 30 |
# File 'lib/concordion_test_case.rb', line 28 def trivial @trivial = true end |