Class: AktionTestRails::Matchers::FactoryGirl::Validation::Matcher
- Inherits:
-
AktionTest::Matchers::Base
- Object
- AktionTest::Matchers::Base
- AktionTestRails::Matchers::FactoryGirl::Validation::Matcher
- Defined in:
- lib/aktion_test_rails/matchers/factory_girl/validation.rb
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(factory_name) ⇒ Matcher
constructor
A new instance of Matcher.
Constructor Details
#initialize(factory_name) ⇒ Matcher
Returns a new instance of Matcher.
10 11 12 |
# File 'lib/aktion_test_rails/matchers/factory_girl/validation.rb', line 10 def initialize(factory_name) @factory_name = factory_name end |
Instance Method Details
#description ⇒ Object
14 15 16 |
# File 'lib/aktion_test_rails/matchers/factory_girl/validation.rb', line 14 def description "has a valid factory named :#{@factory_name}" end |