I like to run my Rspec tests with Spork running in a separate tab. I usually run my tests using rspec spec
, by which I intend to say \"search recursively and run ev
you can create a rake task
desc "Run PCMag tests"
RSpec::Core::RakeTask.new('test') do |t|
t.rspec_opts = ["-Ilib","--format documentation","--color"]
t.pattern = ['spec/test/*.rb']
end
Then execute command rake test.
Above command will execute all .rb tests under folder 'test'
Please check following link for more details.
http://testautomationarchives.blogspot.in/2013/10/rspec-rake-framework-in-ruby-with.html