eschulte/rinari — pull request #27 by eiel (2012-04-07 16:25:42+00:00)
Title: can not jump spec from view file to spec file

I Changed the jump spec for views rspec.
Non-greedy regexp can match filename in view file.

For example.

- viewfile "app/views/tweet.html.erb"
- spec "app/\\\\1" -> "app/\\\\(.*?\\\\)"
- match-string 0 -> "app/"
- match-string 1 -> ""

- modify spec "app/\\\\1$" -> "app/\\\\(.*?\\\\)"
- match-string 0 -> "app/views/tweet.html.erb"
- match-string 1 -> "views/tweet.html.erb"