Top Level Namespace

Defined Under Namespace

Modules: RSpec

Instance Method Summary collapse

Instance Method Details

#have_errorRSpec::Kwalify::HaveError #have_error(count) ⇒ RSpec::Kwalify::HaveError #have_error(regexp) ⇒ RSpec::Kwalify::HaveError

Overloads:



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_errorRSpec::Kwalify::HaveError #have_validation_error(count) ⇒ RSpec::Kwalify::HaveError #have_validation_error(regexp) ⇒ RSpec::Kwalify::HaveError

Overloads:



73
74
75
# File 'lib/rspec-kwalify.rb', line 73

def have_validation_error(error=nil)
  RSpec::Kwalify::HaveError.new(error, ::Kwalify::ValidationError)
end