module QuickShoulda
Constants
- VERSION
Public Class Methods
_process(path)
click to toggle source
# File lib/quick_shoulda.rb, line 23 def _process(path) unless is_a_constant?(path) raise NotAModelPathError unless path =~ /models\// raise FileDoesNotExistError unless File.file?(path) raise NotRubyFileError unless File.extname(path) == '.rb' end configure_and_generate(path) end
process(paths)
click to toggle source
# File lib/quick_shoulda.rb, line 18 def process(paths) raise PathNotGivenError if paths.empty? paths.each { |path| _process(path) } end