Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs: How does one run RSpec?

Tags:

emacs

rspec

How does one run rspec-mode in emacs? What I have tried is:

  • Go to spec file in Emacs
  • Run M-x rspec-verify-all

I get the following output in *rspec-compilation* buffer

-*- mode: rspec-compilation; default-directory: "~/mydir" -*-
RSpec Compilation started at Sun Feb 15 21:31:36

bundle exec rake spec SPEC_OPTS='--options /Users/rabraham/mydir/.rspec' SPEC='/Users/rabraham/mydir/spec'

RSpec Compilation finished at Sun Feb 15 21:31:39

No tests are run. I have a failing test but that is not caught. Is there a tutorial on running rspec-mode in Emacs?

like image 731
RAbraham Avatar asked Nov 09 '22 18:11

RAbraham


1 Answers

There is no rake "spec" task by default. You should configure your Rakefile like described here

like image 122
driver.devel Avatar answered Nov 15 '22 11:11

driver.devel