Top Level Namespace
Defined Under Namespace
Modules: RSpec
Instance Method Summary collapse
- #have_error(error = nil) ⇒ Object
-
#have_syntax_error(error = nil) ⇒ Object
have_syntax_error.
- #have_validation_error(error = nil) ⇒ Object
Instance Method Details
#have_error ⇒ RSpec::Kwalify::HaveError #have_error(count) ⇒ RSpec::Kwalify::HaveError #have_error(regexp) ⇒ RSpec::Kwalify::HaveError
58 59 60 |
# File 'lib/rspec-kwalify.rb', line 58 def have_error(error=nil) RSpec::Kwalify::HaveError.new(error) end |
#have_syntax_error(error = nil) ⇒ Object
have_syntax_error
78 79 80 |
# File 'lib/rspec-kwalify.rb', line 78 def have_syntax_error(error=nil) RSpec::Kwalify::HaveError.new(error, ::Kwalify::SyntaxError) end |
#have_validation_error ⇒ RSpec::Kwalify::HaveError #have_validation_error(count) ⇒ RSpec::Kwalify::HaveError #have_validation_error(regexp) ⇒ RSpec::Kwalify::HaveError
73 74 75 |
# File 'lib/rspec-kwalify.rb', line 73 def have_validation_error(error=nil) RSpec::Kwalify::HaveError.new(error, ::Kwalify::ValidationError) end |