Running RSpec Files From ruby code
- by Brian D.
I'm trying to run RSpec tests straight from ruby code. More specifically, I'm running some mysql scripts, loading the rails test environment and then I want to run my rspec tests (which is what I'm having trouble with)... I'm trying to do this with a rake task. Here is my code so far:
require"spec"
require "spec/rake/spectask"
RAILS_ENV = 'test'…