Module: Funktional
- Defined in:
- lib/funktional/context.rb,
lib/funktional/email.rb,
lib/funktional/setup.rb,
lib/funktional/assertion.rb,
lib/funktional/route_checker.rb,
lib/funktional/email_assertion.rb,
lib/funktional/model_assertions.rb,
lib/funktional/context/collector.rb,
lib/funktional/flashed_assertion.rb,
lib/funktional/random_characters.rb,
lib/funktional/assigned_assertion.rb,
lib/funktional/test_class_methods.rb,
lib/funktional/recursive_assertion.rb,
lib/funktional/context/should_block.rb,
lib/funktional/attribute_test_helper.rb,
lib/funktional/test_instance_methods.rb,
lib/funktional/context/stack_recorder.rb,
lib/funktional/context/should_not_block.rb,
lib/funktional/context/count_should_block.rb,
lib/funktional/context/should_create_block.rb,
lib/funktional/context/should_delete_block.rb,
lib/funktional/context/element_should_block.rb,
lib/funktional/context/flashed_should_block.rb,
lib/funktional/context/assigned_should_block.rb,
lib/funktional/context/delegating_should_block.rb,
lib/funktional/context/should_not_create_block.rb,
lib/funktional/context/should_not_delete_block.rb,
lib/funktional/context/should_not_send_email_block.rb
Overview
borrowing heavily from shoulda contexts.
Defined Under Namespace
Modules: AttributeTestHelper, ModelAssertions, RandomCharacters, Setup, TestClassMethods, TestInstanceMethods Classes: Assertion, AssignedAssertion, AssignedShouldBlock, BlankSlate, Context, CountShouldBlock, DelegatingShouldBlock, ElementShouldBlock, Email, EmailAssertion, FlashedAssertion, FlashedShouldBlock, RecursiveAssertion, RouteChecker, ShouldBlock, ShouldCreateBlock, ShouldDeleteBlock, ShouldNotBlock, ShouldNotCreateBlock, ShouldNotDeleteBlock, ShouldNotSendEmailBlock, StackRecorder
Class Attribute Summary collapse
-
.contexts ⇒ Object
Returns the value of attribute contexts.
Class Method Summary collapse
Class Attribute Details
.contexts ⇒ Object
Returns the value of attribute contexts.
3 4 5 |
# File 'lib/funktional/context/collector.rb', line 3 def contexts @contexts end |
Class Method Details
.add_context(context) ⇒ Object
13 14 15 |
# File 'lib/funktional/context/collector.rb', line 13 def add_context(context) self.contexts.push(context) end |
.current_context ⇒ Object
9 10 11 |
# File 'lib/funktional/context/collector.rb', line 9 def current_context self.contexts.last end |
.remove_context ⇒ Object
17 18 19 |
# File 'lib/funktional/context/collector.rb', line 17 def remove_context self.contexts.pop end |