Skip to content

Not getting full file path of spec in terminal #104

@patrickspencer

Description

@patrickspencer

For some reason when I run any of the vim-rspec commands it shows up in my terminal as something like "rspec ~/railsapp/user_spec.rb" instead of "rspec ~/railsapp/spec/models/user_spec.rb". I changed

function! s:CurrentFilePath()
  return @%
endfunction

to

function! s:CurrentFilePath()
  return expand('%:p')
endfunction

in plugin/rspec.vim and it seemed to fix it. I was wondering if anyone else had this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions