Closed fornof closed 9 years ago
https://github.com/appacademy/prep-work/tree/master/coding-test-2/practice-problems/spec These files require a relative path to work, otherwise rspec cannot find the file. For instance:
require '00_nearest_larger' require 'rspec'
should be relative , so it should be
require_relative '../lib/00_nearest_larger' require 'rspec'
This is a minor thing, but it caught me off guard the first time I ran into that.
The require statements work as-is for me using either rake or bundle exec rspec.
rake
bundle exec rspec
https://github.com/appacademy/prep-work/tree/master/coding-test-2/practice-problems/spec These files require a relative path to work, otherwise rspec cannot find the file. For instance:
should be relative , so it should be
This is a minor thing, but it caught me off guard the first time I ran into that.