module Ctrlspecs
Constants
- VERSION
Public Instance Methods
it_calls_service(service)
click to toggle source
# File lib/ctrlspecs.rb, line 18 def it_calls_service service it_behaves_like 'calls service', service end
it_flashes(hsh)
click to toggle source
# File lib/ctrlspecs.rb, line 14 def it_flashes hsh it_behaves_like 'flashes', hsh end
it_redirects_to(path)
click to toggle source
# File lib/ctrlspecs.rb, line 10 def it_redirects_to path it_behaves_like 'redirects to', path end
it_renders_template(tmpl_name)
click to toggle source
# File lib/ctrlspecs.rb, line 6 def it_renders_template tmpl_name it_behaves_like 'renders template', tmpl_name end
mock_save_record_failure()
click to toggle source
# File lib/ctrlspecs.rb, line 22 def mock_save_record_failure include_context 'mock save record failure' end
mock_service_returning_error(service, error)
click to toggle source
# File lib/ctrlspecs.rb, line 26 def mock_service_returning_error service, error include_context 'mock service returning error', service, error end