Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Rakefile
- require 'pry'
- project_dir = File.dirname(__FILE__)
- $LOAD_PATH << project_dir # let's see ./test
- $LOAD_PATH << File.join(project_dir, 'lib')
- Dir[File.join(project_dir, 'lib', '*.rb')].each { |f| require f }
- desc "Run minitest suite"
- task :test do
- Dir.glob('test/specs/*_spec.rb') { |f| require f }
- end
- desc "Open a console with libraries loaded"
- task :console do
- binding.pry
- end
- ### output
- ➜ 001 git:(master) ✗ rake console
- rake aborted!
- cannot load such file -- pry
- /Users/jrhorn424/learning/arlrug/codenight/001/Rakefile:1:in `require'
- /Users/jrhorn424/learning/arlrug/codenight/001/Rakefile:1:in `<top (required)>'
- (See full trace by running task with --trace)
Advertisement
Add Comment
Please, Sign In to add comment