Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: pezra/rspec-mode
base: master
head fork: anildigital/rspec-mode
compare: master
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 3 additions and 15 deletions.
  1. +3 −15 rspec-mode.el
18 rspec-mode.el
@@ -203,18 +203,18 @@
(defun rspec-verify ()
"Runs the specified spec, or the spec file for the current buffer."
- (rspec-run-single-file (rspec-spec-file-for (buffer-file-name)) (rspec-core-options ())))
+ (rspec-run-single-file (rspec-spec-file-for (buffer-file-name)) ))
(defun rspec-verify-single ()
"Runs the specified example at the point of the current buffer."
- (rspec-run-single-file (rspec-spec-file-for (buffer-file-name)) (rspec-core-options ()) (concat "--line " (number-to-string (line-number-at-pos)))))
+ (rspec-run-single-file (rspec-spec-file-for (buffer-file-name)) (concat "--line " (number-to-string (line-number-at-pos)))))
(defun rspec-verify-all ()
"Runs the 'spec' rake task for the project of the current file."
(let ((default-directory (or (rspec-project-root) default-directory)))
- (rspec-run (rspec-core-options "--format=progress"))))
+ (rspec-run )))
(defun rspec-toggle-spec-and-target ()
"Switches to the spec for the current buffer if it is a
@@ -302,18 +302,6 @@
"Returns true if the specified file is a spec"
(string-match "\\(_\\|-\\)spec\\.rb$" a-file-name))
-(defun rspec-core-options (&optional default-options)
- "Returns string of options that instructs spec to use spec.opts file if it exists, or sensible defaults otherwise"
- (if (file-readable-p (rspec-spec-opts-file))
- (concat "--options " (rspec-spec-opts-file))
- (if default-options
- default-options
- (concat "--format specdoc " "--reverse"))))
-(defun rspec-spec-opts-file ()
- "Returns filename of spec opts file (usually spec/spec.opts)"
- (concat (rspec-spec-directory (rspec-project-root)) "/spec.opts"))
(defun rspec-runner ()
"Returns command line to run rspec"
(if rspec-use-rake-flag

No commit comments for this range

Something went wrong with that request. Please try again.