This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec/support/grep_matcher' | |
describe do | |
disallow_presence_of pattern: "send(.*#", | |
location: "app/", | |
description: "Do not use dynamic method invocations", | |
failure: "Please change dynamic method call to something more sane." | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! RunSpec(lineNumber) | |
wall | |
let lineNumberSpecified = a:lineNumber | |
let fname = expand("%") | |
if fname =~ "spec" | |
let g:spec = fname | |
let g:specLineNum = a:lineNumber | |
endif | |
if exists("g:spec") | |
let cmd = '!./script/spin ' . g:spec |