Module: Fix
- Defined in:
- lib/fix.rb,
lib/fix/doc.rb,
lib/fix/dsl.rb,
lib/fix/run.rb,
lib/fix/set.rb,
lib/fix/builder.rb,
lib/fix/matcher.rb,
lib/fix/requirement.rb,
lib/fix/error/specification_not_found.rb,
lib/fix/error/invalid_specification_name.rb,
lib/fix/error/missing_specification_block.rb
Overview
Namespace for the Fix framework.
Provides core functionality for managing and running test specifications. Fix supports two modes of operation:
-
Named specifications that can be referenced later
-
Anonymous specifications for immediate testing
Defined Under Namespace
Modules: Doc, Error, Matcher, Requirement Classes: Builder, Dsl, Run, Set
Class Method Summary collapse
-
.[](name) ⇒ Fix::Set
Retrieves and loads a built specification for testing.
-
.spec_defined?(name) ⇒ Boolean
Checks if a specification is defined.
-
.specification_names ⇒ Array<Symbol>
Lists all defined specification names.
Class Method Details
.[](name) ⇒ Fix::Set
Retrieves and loads a built specification for testing.
41 42 43 44 45 |
# File 'lib/fix.rb', line 41 def [](name) name = normalize_name(name) validate_specification_exists!(name) Set.load(name) end |
.spec_defined?(name) ⇒ Boolean
Checks if a specification is defined.
64 65 66 |
# File 'lib/fix.rb', line 64 def spec_defined?(name) specification_names.include?(normalize_name(name)) end |
.specification_names ⇒ Array<Symbol>
Lists all defined specification names.
53 54 55 |
# File 'lib/fix.rb', line 53 def specification_names Doc.constants.sort end |