GithubHelp home page GithubHelp logo

thoughtbot / vim-rspec Goto Github PK

View Code? Open in Web Editor NEW
656.0 49.0 108.0 43 KB

Run Rspec specs from Vim

Home Page: https://robots.thoughtbot.com

License: MIT License

Ruby 0.84% AppleScript 21.84% Vim Script 77.32%

vim-rspec's Introduction

rspec.vim

This is a lightweight RSpec runner for Vim and MacVim.

Installation

Recommended installation with vundle:

Plugin 'thoughtbot/vim-rspec'

If using zsh on OS X it may be necessary to move /etc/zshenv to /etc/zshrc.

Configuration

Key mappings

Add your preferred key mappings to your .vimrc file.

" RSpec.vim mappings
map <Leader>t :call RunCurrentSpecFile()<CR>
map <Leader>s :call RunNearestSpec()<CR>
map <Leader>l :call RunLastSpec()<CR>
map <Leader>a :call RunAllSpecs()<CR>

Custom command

Overwrite the g:rspec_command variable to execute a custom command.

Example:

let g:rspec_command = "!rspec --drb {spec}"

This g:rspec_command variable can be used to support any number of test runners or pre-loaders. For example, to use Dispatch:

let g:rspec_command = "Dispatch rspec {spec}"

Or, Dispatch and Zeus together:

let g:rspec_command = "compiler rspec | set makeprg=zeus | Make rspec {spec}"

Custom runners

Overwrite the g:rspec_runner variable to set a custom launch script. At the moment there are two MacVim-specific runners, i.e. os_x_terminal and os_x_iterm. The default is os_x_terminal, but you can set this to anything you want, provided you include the appropriate script inside the plugin's bin/ directory.

iTerm instead of Terminal

If you use iTerm, you can set g:rspec_runner to use the included iterm launching script. This will run the specs in the last session of the current terminal.

let g:rspec_runner = "os_x_iterm"

If you use the iTerm2 nightlies, the os_x_iterm runner will not work (due to AppleScript incompatibilities between the old and new versions of iTerm2).

Instead use the os_x_iterm2 runner, configure it like so:

let g:rspec_runner = "os_x_iterm2"

Running tests

Tests are written using vim-vspec and run with vim-flavor.

Install the vim-flavor gem, install the dependencies and run the tests:

gem install vim-flavor
vim-flavor install
rake

Credits

thoughtbot

rspec.vim is maintained by thoughtbot's Vim enthusiasts and contributors like you. Thank you!

It was strongly influenced by Gary Bernhardt's Destroy All Software screencasts.

License

rspec.vim is copyright © 2016 thoughtbot. It is free software, and may be redistributed under the terms specified in the LICENSE file.

The names and logos for thoughtbot are trademarks of thoughtbot, inc.

vim-rspec's People

Contributors

alexgenco avatar calebhearth avatar croaky avatar declank avatar derekprior avatar dgmstuart avatar harlow avatar hiattp avatar ilyakatz avatar jamesaanderson avatar jasonm23 avatar jessieay avatar jferris avatar jklina avatar jordandcarter avatar keith avatar mohanzhang avatar raykrueger avatar sobrinho avatar thorncp avatar tpett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-rspec's Issues

Pass along flag to rspec

Hello! I use this plugin probably a thousand times per day, and I often find myself thinking "I would like to run the last selected specs, but with --format=documentation. Is this possible somehow? Being able to pass the rspec flags to RunLastSpec() as an argument would be great, but maybe there is an easier way to do this.

Any pointers are appreciated!

Cannot Load spec/controllers/spec ?????

I have vim-rspec setup and working in "my" projects but I just joined a project that was set up before I go there and I'm getting this strange error when I try to run specs from vim:

/Users/spinlock/.rvm/gems/ruby-2.0.0-p247@hoplu/gems/rspec-core-2.14.7/lib/rspec   /core/configuration.rb:896:in `load': cannot load such file -- /Users/spinlock/rails/hoplu/spec/controllers/spec (LoadError)
from /Users/spinlock/.rvm/gems/ruby-2.0.0-p247@hoplu/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
from /Users/spinlock/.rvm/gems/ruby-2.0.0-p247@hoplu/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `each'
from /Users/spinlock/.rvm/gems/ruby-2.0.0-p247@hoplu/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load_spec_files'
from /Users/spinlock/.rvm/gems/ruby-2.0.0-p247@hoplu/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22:in `run'
from /Users/spinlock/.rvm/gems/ruby-2.0.0-p247@hoplu/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:in `run'
from /Users/spinlock/.rvm/gems/ruby-2.0.0-p247@hoplu/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun'

Any ideas where to start tracking this down? I can run the specs from the command line but not from withing vim (even with :!rspec).

Any help would be appreciated. Thanks!

Doesn't work with chruby

Running rspec doesn't work with Chruby. I also tried quiting from vim and change ruby version to 1.9.2 or 2.0.0-p195. But the error message is always the same. I could run rspec outside of vim using ruby 2.0.0-p247 though.

I'm using spf13.vim and oh.my.zsh on mac os 10.8.4, if that's relevant. I recompiled it twice while changing ruby to 2.0.0-p247 and still doesn't work. I also did mv /etc/zshenv /etc/zshrc.

UPDATE: I noticed the generated command is always rspec current_spec.rb, rather than the absolute path of the current spec, which is causing the error. I'm not sure why is that though.
UPDATE 2: I changed the path to absolute path by modify the gem using expand('%:p') instead of @%, it still gives out the same error. So I'm guessing it's Chruby ruby is not used. Running !rspec inside vim also gives out the same error. Running !which rspec gives out the exact same path as running it outside vim. Is this a Chruby problem or plugin problem? Thanks!
UPDATE3: I've found out my vim is using /bin/sh as the shell, and the pwd is in spec/models when I open the vim with vi spec/models/user_spec.rb. If I do :!cd ../..; rspec spec/models/user_spec.rb to run the spec, it will work. And it might indeed be an autochdir problem. This might be a spf13-vim issue. I opened an issue there spf13/spf13-vim#420.

vi spec/models/user_spec.rb

rspec user_spec.rb
/Users/zhh/.rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- spec_helper (LoadError)
  from /Users/zhh/.rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
  from /Users/zhh/Dropbox/Development/work/devproject/spec/models/user_spec.rb:1:in `<top (required)>'
  from /Users/zhh/.gem/ruby/2.0.0/gems/rspec-core-2.14.4/lib/rspec/core/configuration.rb:896:in `load'
  from /Users/zhh/.gem/ruby/2.0.0/gems/rspec-core-2.14.4/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
  from /Users/zhh/.gem/ruby/2.0.0/gems/rspec-core-2.14.4/lib/rspec/core/configuration.rb:896:in `each'
  from /Users/zhh/.gem/ruby/2.0.0/gems/rspec-core-2.14.4/lib/rspec/core/configuration.rb:896:in `load_spec_files'
  from /Users/zhh/.gem/ruby/2.0.0/gems/rspec-core-2.14.4/lib/rspec/core/command_line.rb:22:in `run'
  from /Users/zhh/.gem/ruby/2.0.0/gems/rspec-core-2.14.4/lib/rspec/core/runner.rb:80:in `run'
  from /Users/zhh/.gem/ruby/2.0.0/gems/rspec-core-2.14.4/lib/rspec/core/runner.rb:17:in `block in autorun'

RunLastSpec disappeared

In the last commit of the plugin, the function RunLastSpec was removed. This makes the recommended keybindings (in the README) not function.

Was this on purpose? If so, what should be used for re-running the last set of tests?

Using Zeus configuration with Dispatch and Macvim does not work properly

While using the zeus configuration for g:rspec_command with Macvim and iTerm, the command does not work the first time. Basically I have to run the command once which opens up a blank terminal tab, then when I run the command a second time it opens a terminal tab and actually runs the tests and closes itself. Here is an image of the output the first run, notice how it says iterm/?
screen shot 2015-06-03 at 2 13 44 pm
Then here is an image after running the command a second time. As you can see it actually finds a terminal instance to attach to.
screen shot 2015-06-03 at 2 15 37 pm

Side note: this configuration works just fine in terminal vim.

cannot load such file -- bundler/setup

Hi, For some reason this plugin is using my System Ruby instead of the proper version when I run a spec with the s shortcut:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundler/setup (LoadError)
        from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /Users/chip/code/woboinc/rentwb/bin/rspec:14:in `<main>'

shell returned 1

Press ENTER or type command to continue

This spec runs fine from the command line, though. I'm sure I've done something wrong, but not sure what to do after trying various settings for let g:rspec_command. Currently, I don't have that variable set in my .vimrc when the spec fails. Any clues would be greatly appreciated. Thanks.

Current RSpec file with no path

After starting the series 'The Art of Vim' (awesome), I trying to use Vim for everything, in my Rails development.

I try this plugin, unfortunately when I run :

<Leader> t

instead of running the following command

rspec path / my_spec.rb

he launched

rspec my_rspec.rb

and so I have a problem can not load such file - spec_helper (LoadError)

Support for both `bin/rspec` and `rspec` command?

Currently in my Rails projects I use Spring for quick loading. Which, with the custom setting, let g:rspec_command, that makes it easy.

Ex: let g:rspec_command = '!bundle exec bin/rspec {spec}'

However, some of my projects don't use Rails or Spring, which - in that case I need to jump back into my .vimrc.

Is there a way to set things up so that I can have the best of both worlds?


Side note: This plugin has changed my workflow completely (for the far better) - thank you for your hard work!

Inproved rspec_command for Dispatch/zeus

The Dispatch & zeus rspec_command in the current version of the readme won't use the correct vim compiler and as such the wrong errorformat list are used. This means vim's quickfix list will always remain open when after RunNearestSpec() even if there are no spec failures.

Instead I find using this command works correctly:

let g:rspec_command = "compiler rspec | set makeprg=zeus | Make rspec {spec}"

Maybe the readme should be updated?

what does RunNearestSpec mean ?

anyone can explain nearest ?

thanks !

FYI: i'm using ITerm2 and oh-my-zsh

and i use this

let g:rspec_command = "Dispatch bundle exec rspec {spec}"

Rspec options

Hi there,

Thanks for the gem, it's really useful.

But there is something that I'm missing, the --color option. I've already forked and set this as default, but I'm wondering if you are willing to set this here.

Cheers,

.feature files running rspec

Is it intentional that there is no separation of _spec.rb files and .feature files? I figure it's not unusual to run different commands for spec files and features (eg. cucumber, spinach).

i would be happy to send a PR but I wanted to run this by you before jumping in

RSpec 3.4 (?) breaks the quickfix list output

For a while now I've noticed that rspec.vim when combined with vim-dispatch hasn't been giving me those nice links that I can use to jump to the next issue with :cn. I think I've managed to isolate this to having broken in upgrading to version 3.4.0 of RSpec (see output below).

I'm using the master branch of vim-rspec and vim-dispatch with tmux 2.1 and the latest vim.

The rspec command I'm using is Dispatch bundle exec rspec spec --format=progress

Changing the formatter or not specifying it doesn't seem to have any effect.

The main difference seems to be that in 3.3 the quickfix list is the output of the rspec command, whereas in 3.4 it's some location in var (???).

My guess is that this issue is related to the failure output improvements introduced in 3.4 - though it doesn't look like the output is actually very different (see screenshots at the end)

Let me know what other information I can provide to help debug this and/or if there's a way to export the quickfix list to a plain text file.

With RSpec version 3.3.0:
screen shot 2015-12-22 at 12 34 46

48   gem 'rspec-rails', '~> 3.3.0'
(10) Gemfile [ruby] [Git(feature/html-view-improvements)]                                                                                                                                                                1              (7/71)
  9 ||·
  8 ||·
  7 || Failures:
  6 ||·
  5 spec/services/pipeline_org_finder_spec.rb|12 error|  Failure/Error: expect(service.call(145).name).to eq "foo one" expected: "foo one" got: "this one" (compared using ==)
  4 ||·
  3 || Finished in 10.61 seconds (files took 5.83 seconds to load)
  2 || 81 examples, 1 failure, 6 pending
  1 ||·
28  || Failed examples:
[Quickfix List] :bundle exec rspec spec --format=progress

With RSpec version 3.4.0:
screen shot 2015-12-22 at 12 38 26

48   gem 'rspec-rails', '~> 3.4.0'
(10) Gemfile [ruby] [Git(feature/html-view-improvements)]                                                                                                                                                                1              (7/71)
27  ||······
  1 ||        (compared using ==)
  2 ||      # ./spec/services/pipeline_org_finder_spec.rb:12:in `block (3 levels) in <top (required)>'
  3 ||·
  4 || Finished in 10.64 seconds (files took 5.75 seconds to load)
  5 || 81 examples, 1 failure, 6 pending
  6 ||·
  7 || Failed examples:
  8 ||·
  9 || rspec ./spec/services/pipeline_org_finder_spec.rb:6 # PipelineOrgFinder.call selects the right organisation based on URN
[Quickfix List] :noautocmd cgetfile /var/folders/z1/1ymmlq412nj_ld4y7v_7lxtw0000gn/T/vCoyZtR/336

Note that the output when running rspec outside of vim appears identical except for syntax highlighting:

3.3.0:
screen shot 2015-12-22 at 12 57 43

3.4.0:
screen shot 2015-12-22 at 12 59 29

Error in gui MacVim: "no previous command"

I get the following error in gui MacVim when I try to RunNearestSpec(), RunLastSpec(), or RunNearestSpecFile():

screen shot 2015-05-09 at 2 06 21 pm

Everything works fine in terminal MacVim (mvim -v). Ideas?

Not getting full file path of spec in terminal

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?

:call RunNearestSpec() but spec doesn't run

I've install vim-rspec and configured my keybindings to run the specs from within vim. But, when i type "\s" rather than running the nearest spec, I just see the message

:call RunNearestSpec()

Any ideas what I need to configure to get the specs to run?

Thanks! I love this plugin :)

validate_ruby!

Hello

Don't understand why vim-rspec tell me this :

rspec spec/models/mobile_application_update_spec.rb:306
/Users/bti/.rvm/gems/ruby-2.2.1@project/gems/bundler-1.9.4/lib/bundler/definition.rb:380:in `validate_ruby!': Your Ruby version is 2.0.0, but your Gemfile specified 2.2.1 (Bundler::RubyVersionMismatch)
shell returned 1

But ruby -v return :

$ ruby -v                                                                                                                                        [13:39:11]
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]

and Gemfile 2 | ruby '2.2.1'

Vim Ginkgo runner

Hi,

I'm a daily user of vim-rspec, but recently I needed something like it for Go development. I'm using Ginkgo here, so I took the liberty to create another plugin (https://github.com/jaisonerick/vim-ginkgo-runner) based (TBH, it's more like a copy with some changes) on the vim-rspec code to have a similar environment.

Currently I'm using it just for Ginkgo test suite, but I'm planning to add Go stdlib support too. If there are any plan to evolve the vim-rspec plugin into something more "language agnostic", please, let me know.

Thanks a lot!

Forked for Elixir

This issue can be closed immediately. I just wanted to share that I forked the repo and modified the function names to work with Elixir's Text Unit vim-ex_text.

How to use with Projectionist

Hi,
I'm trying to use Projectionist with vim-rspec, I already have it working with Dispatch but not with Projectionist.

I have this configuration on my .vimrc:

let g:rspec_command = 'w | Dispatch rspec {spec}'

nnoremap <Leader>t :call RunCurrentSpecFile()<CR>
nnoremap <Leader>s :call RunNearestSpec()<CR>
nnoremap <Leader>l :call RunLastSpec()<CR>
map <leader>t :call RunCurrentSpecFile()<cr>
map <leader>s :call RunNearestSpec()<cr>
map <leader>l :call RunLastSpec()<cr>
map <leader>a :call RunAllSpecs()<cr>

And I have this .projections.json file:

{
  "spec/*_spec.rb": {
    "dispatch": "docker-compose run artisan bundle exec rspec {file}"
  }
}

For some reason, when why run <leader>s it runs w | Dispatch rspec {spec} and not docker-compose run artisan bundle exec rspec {file}.

I'm wondering it I should ignore vim-rspec or use another command to execute the Projectionist configuration.

Does anybody have this same situation?

Is it possible to send pkill process before running test ?

Hello

I would like to know if it's possible to send a !pkill 'myprocess' before running rspec_command. I'm using rerun and test loop at every files changes. When I want to run different test I have to jump to iterm, ctrl+c and then I can restart the test from macvim.

For the moment I only have

" Rspec.vim run command
let g:rspec_command = "clear && rerun --dir app,spec,config bin/rspec -b -p "**/*.{rb,js,jbuilder,coffee,css,scss,sass,erb,html,haml,ru,yml,slim,md}" ' {spec}"
let g:rspec_runner = "os_x_iterm"

It seems I have to stop the rerun process. If I do :!pkill -f rerun it's kill properly the process. But if I do let g:rspec_command = "!pkill -f rerun && clear && rbr {spec}" I get

Error detected while processing function RunCurrentSpecFile[4]..<SNR>40_RunSpecs:
line    3:
E34: No previous command      

Thanks in advance.

Benoit

Mvim Support: Auto-switch between shell and mvim

I don't know if this is even possible, but it would be cool to have.

Currently when I run specs from mvim, they run in a background iterm2. I have a global hotkey for my iterm2, so it's not a huge deal to switch back and forth.

However, it would be nice if mvim could bring the terminal forward, then when you hit enter on the terminal, go back to editing.

With spring the quick fix window always opens

Everything works with this:

let g:rspec_command = "Dispatch rspec {spec}"

When there is an error, I get the quick fix window, if not, then not.

But if I add spring ...

let g:rspec_command = "Dispatch spring rspec {spec}"

... I always get the quick fix window and the first line is focused (which says || Run options: include {:focus=>true} in my case, because I have set Spring.quiet = true)

I'm using rspec 3.5.0.beta1 and Rails 5.0.0.beta2, so maybe that has to do something with it? How can we debug this further?

Does it work with rvm?

Dont really understand why I cant run the tests. I get syntax errors as if I were running ruby 1.8 but the output suggests otherwise. Any idea whats wrong?

/Users/pair/.rvm/gems/ruby-1.9.3-p194-falcon@services/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load': /Users/pair/workspace/services/spec/requests/v1/topics_api_spec.rb:12: syntax error, unexpected ':', expecting ')' (SyntaxError)
...rl.build(:membership, company: community, user: community_ma...
                              ^
/Users/pair/workspace/services/spec/requests/v1/topics_api_spec.rb:12: syntax error, unexpected ':', expecting '='
...hip, company: community, user: community_manager)
                              ^
/Users/pair/workspace/services/spec/requests/v1/topics_api_spec.rb:25: syntax error, unexpected ':', expecting ')'
      company: community,
              ^
/Users/pair/workspace/services/spec/requests/v1/topics_api_spec.rb:26: syntax error, unexpected ':', expecting '='
      role: 'user',
           ^
/Users/pair/workspace/services/spec/requests/v1/topics_api_spec.rb:26: syntax error, unexpected ',', expecting kEND
/Users/pair/workspace/services/spec/requests/v1/topics_api_spec.rb:31: syntax error, unexpected ':', expecting ')'
    membership = FactoryGirl.build(:membership, company: community)
                                                        ^
/Users/pair/workspace/services/spec/requests/v1/topics_api_spec.rb:48: syntax error, unexpected ':', expecting ')'
...pic_path(topic.id), client_id: api_client_id ) do |doc|
                              ^
/Users/pair/workspace/services/spec/requests/v1/topics_api_spec.rb:58: syntax error, unexpected ':', expecting ')'
...pany.id, topic.id), client_id: api_client_id ) do |doc|
                              ^
/Users/pair/workspace/services/spec/requests/v1/topics_api_spec.rb:63: syntax error, unexpected kEND, expecting $end
    from /Users/pair/.rvm/gems/ruby-1.9.3-p194-falcon@services/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load_spec_files'
    from /Users/pair/.rvm/gems/ruby-1.9.3-p194-falcon@services/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `each'
    from /Users/pair/.rvm/gems/ruby-1.9.3-p194-falcon@services/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load_spec_files'
    from /Users/pair/.rvm/gems/ruby-1.9.3-p194-falcon@services/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:22:in `run'
    from /Users/pair/.rvm/gems/ruby-1.9.3-p194-falcon@services/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:80:in `run'
    from /Users/pair/.rvm/gems/ruby-1.9.3-p194-falcon@services/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:in `autorun'
    from /Users/pair/.rvm/gems/ruby-1.9.3-p194-falcon@services/bin/ruby_noexec_wrapper:14

Why not running inside MacVim?

Is there a specific reason why, when inside MacVim, you send specs to Terminal.app/iTerm?
(Apart maybe from colored output, which in MacVim reads like ]033m everywhere)

iTerm does not foreground when running specs

Environment:
iTerm2 Build 2.1.1
MacVim 7.4 (75)
OS X 10.10.3
let g:rspec_runner = "os_x_iterm"

When activating iTerm2 for running specs, the command is populated and executed in iTerm, but the window only flashes active into the foreground before being backgrounded again. Is that a limitation of AppleScript?

I'm not an expert in Vim plugins, but this article may be useful https://apple.stackexchange.com/questions/58355/how-can-i-bring-a-window-to-frontmost-without-focusing-it-using-applescript-in-o

Toggling rspec_command setting

Some of my projects use Rails, so setting rspec_command to use Zeus is very convenient, but many of my projects involve Sinatra, Padrino or Ruby gems, so in those cases I'd rather use a different command. Do you have any suggestions? Thanks in advance.

Run corresponding tests

How about a feature so you can run the corresponding test, for example while editing app/models/user.rb, you could run the spec/models/user_spec.rb spec by running
:call RunCorrespondingSpec() same for controllers which could also run test in the requests folder.

no color when running spec ?

I've configured --color --drb in my .rspec file, t runs the spec file, no color
i even tried ~/.rspec file, but still no color , i don't know why, anyone can help ?
thanks !

vim-rspec sending g:rspec_command command to shell rather than vim

I updated vim-rspec this weekend (since commit 4c637bd) and have noticed what seems to be a regression. I am using Dispatch, but the problem can be replicated without Dispatch.

I noticed the issue when I would attempt to run specs, and would get this output

Dispatch rspec spec
zsh:1: command not found: Dispatch

shell returned 127

Press ENTER or type command to continue

Dispatch rspec {spec} (my complete value for g:rspec_command was getting returned as an invalid zsh command. If I change my g:rspec_command to just rspec {spec} (with no exclamation point before the rspec command), then vim-rspec executes the specs.

It looks like vim-rspec is just passing whatever g:rspec_command is on to the shell rather than to vim. If I attempt to use the default and not specify a custom command, vim-rspec works as expected. I'm not sure if after this new change to allow simultaneous definitions of g:rspec_command and g:rspec_runner in 4c637bd that there's a new configuration that wasn't reflected in the docs or not.

Command send to shell (vim-dispatch)

Hey

I have the latest version of the vim-rspec and vim-dispatch.

My vim-rspec settings:
let g:rspec_runner = "os_x_iterm"
let g:rspec_command = "Dispatch bundle exec rspec {spec}"

Instead of running the test whole g:rspec_command is send to the console.

Any ideas how can I fix that issue?

Support for Gvim + terminator

Hey guys,

I cant find any support for Gvim (vim-gnome) and terminator. Is where any possibility to run test from Gvim in terminator like Mvim on Iterm on OSX?

If yes, can you put it on the readme please.

Can't run specs from MacVim

Sorry for bothering you guys. But I started to use MacVim recently and the vim aliases to run the specs are returning an error.

Error detected while processing function RunCurrentSpecFile[4]..<SNR>61_RunSpecs:
line    3:
E34: No previous command
Press ENTER or type command to continue

When I used Vim from iTerm2 it worked fine. I am using build 2.1.4.
So far to my ~/.vimrc I added let g:rspec_runner = "os_x_iterm"
I created a new file in ~/Library/Application\ Support/iTerm/AutoLaunch.scpt and added the same line there.
Thank you for making this awesome plugin.

iTerm2 Version 3 Support

The current script does not work with the latest (beta) version of iTerm2.

From their latest post:

Applescript support has been updated, but it's not backwards compatible.

problem run on mac and rvm

Hi. I use rvm with ruby 2.0
When i run specs from terminal vim i get crash report

/Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/json-1.8.1/lib/json/ext/parser.bundle: [BUG] Segmentation fault
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.1]

-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
the more detail of.

-- Control frame information -----------------------------------------------
c:0040 p:-17587210902646 s:0122 e:000121 TOP [FINISH]
c:0039 p:---- s:0120 e:000119 CFUNC :require
c:0038 p:0009 s:0116 e:000115 CLASS /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/json-1.8.1/lib/json/ext.rb:13
c:0037 p:0011 s:0114 e:000113 CLASS /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/json-1.8.1/lib/json/ext.rb:12
c:0036 p:0057 s:0112 e:000111 TOP /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/json-1.8.1/lib/json/ext.rb:9 [FINISH]
c:0035 p:---- s:0110 e:000109 CFUNC :require
c:0034 p:0019 s:0106 e:000105 CLASS /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/json-1.8.1/lib/json.rb:58
c:0033 p:0017 s:0104 e:000103 TOP /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/json-1.8.1/lib/json.rb:54 [FINISH]
c:0032 p:---- s:0102 e:000101 CFUNC :require
c:0031 p:0009 s:0098 e:000097 TOP /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/object/to_json.rb:3 [FINISH]
c:0030 p:---- s:0096 e:000095 CFUNC :require
c:0029 p:0071 s:0092 e:000091 TOP /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/object.rb:11 [FINISH]
c:0028 p:---- s:0090 e:000089 CFUNC :require
c:0027 p:0023 s:0086 e:000085 TOP /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/configuration.rb:3 [FINISH]
c:0026 p:---- s:0084 e:000083 CFUNC :require
c:0025 p:0015 s:0080 e:000079 TOP /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/railtie.rb:2 [FINISH]
c:0024 p:---- s:0078 e:000077 CFUNC :require
c:0023 p:0007 s:0074 e:000073 TOP /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/engine.rb:1 [FINISH]
c:0022 p:---- s:0072 e:000071 CFUNC :require
c:0021 p:0031 s:0068 e:000067 TOP /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/application.rb:4 [FINISH]
c:0020 p:---- s:0066 e:000065 CFUNC :require
c:0019 p:0047 s:0062 e:000061 TOP /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails.rb:9 [FINISH]
c:0018 p:---- s:0060 e:000059 CFUNC :require
c:0017 p:0007 s:0056 e:000055 TOP /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/all.rb:1 [FINISH]
c:0016 p:---- s:0054 e:000053 CFUNC :require
c:0015 p:0026 s:0050 e:000049 TOP /Users/semen/Sites/ruby/games/config/application.rb:3 [FINISH]
c:0014 p:---- s:0048 e:000047 CFUNC :require
c:0013 p:0018 s:0044 e:000043 TOP /Users/semen/Sites/ruby/games/config/environment.rb:2 [FINISH]
c:0012 p:---- s:0042 e:000041 CFUNC :require
c:0011 p:0046 s:0038 e:000037 TOP /Users/semen/Sites/ruby/games/spec/spec_helper.rb:3 [FINISH]
c:0010 p:---- s:0036 e:000035 CFUNC :require
c:0009 p:0007 s:0032 e:000031 TOP /Users/semen/Sites/ruby/games/spec/models/user_spec.rb:1 [FINISH]
c:0008 p:---- s:0030 e:000029 CFUNC :load
c:0007 p:0018 s:0026 e:000025 BLOCK /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896 [FINISH]
c:0006 p:---- s:0023 e:000022 CFUNC :each
c:0005 p:0011 s:0020 e:000019 METHOD /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896
c:0004 p:0054 s:0017 e:000016 METHOD /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22
c:0003 p:0101 s:0012 e:000011 METHOD /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80
c:0002 p:0044 s:0005 e:000004 BLOCK /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17 [FINISH]
c:0001 p:0000 s:0002 E:001e88 TOP [FINISH]

/Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in block in autorun' /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:inrun'
/Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22:in run' /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:inload_spec_files'
/Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in each' /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:inblock in load_spec_files'
/Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in load' /Users/semen/Sites/ruby/games/spec/models/user_spec.rb:1:in<top (required)>'
/Users/semen/Sites/ruby/games/spec/models/user_spec.rb:1:in require' /Users/semen/Sites/ruby/games/spec/spec_helper.rb:3:in<top (required)>'
/Users/semen/Sites/ruby/games/spec/spec_helper.rb:3:in require' /Users/semen/Sites/ruby/games/config/environment.rb:2:in<top (required)>'
/Users/semen/Sites/ruby/games/config/environment.rb:2:in require' /Users/semen/Sites/ruby/games/config/application.rb:3:in<top (required)>'
/Users/semen/Sites/ruby/games/config/application.rb:3:in require' /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/all.rb:1:in<top (required)>'
/Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/all.rb:1:in require' /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails.rb:9:in<top (required)>'
/Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails.rb:9:in require' /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/application.rb:4:in<top (required)>'
/Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/application.rb:4:in require' /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/engine.rb:1:in<top (required)>'
/Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/engine.rb:1:in require' /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/railtie.rb:2:in<top (required)>'
/Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/railtie.rb:2:in require' /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/configuration.rb:3:in<top (required)>'
/Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/configuration.rb:3:in require' /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/object.rb:11:in<top (required)>'
/Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/object.rb:11:in require' /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/object/to_json.rb:3:in<top (required)>'
/Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/object/to_json.rb:3:in require' /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/json-1.8.1/lib/json.rb:54:in<top (required)>'
/Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/json-1.8.1/lib/json.rb:58:in <module:JSON>' /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/json-1.8.1/lib/json.rb:58:inrequire'
/Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/json-1.8.1/lib/json/ext.rb:9:in <top (required)>' /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/json-1.8.1/lib/json/ext.rb:12:inmodule:JSON'
/Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/json-1.8.1/lib/json/ext.rb:13:in <module:Ext>' /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/json-1.8.1/lib/json/ext.rb:13:inrequire'

-- C level backtrace information -------------------------------------------

-- Other runtime information -----------------------------------------------

  • Loaded script: bin/rspec

  • Loaded features:

    0 enumerator.so
    1 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.2.1/enc/encdb.bundle
    2 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.2.1/enc/trans/transdb.bundle
    3 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.2.1/rbconfig.rb
    4 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/compatibility.rb
    5 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/defaults.rb
    6 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/deprecate.rb
    7 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/errors.rb
    8 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/version.rb
    9 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/requirement.rb
    10 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/platform.rb
    11 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/specification.rb
    12 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/exceptions.rb
    13 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb
    14 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb
    15 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems.rb
    16 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/path_support.rb
    17 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/dependency.rb
    18 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/syntax_error.rb
    19 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.2.1/psych.bundle
    20 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.2.1/stringio.bundle
    21 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/nodes/node.rb
    22 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/nodes/stream.rb
    23 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/nodes/document.rb
    24 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/nodes/sequence.rb
    25 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/nodes/scalar.rb
    26 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/nodes/mapping.rb
    27 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/nodes/alias.rb
    28 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/nodes.rb
    29 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/streaming.rb
    30 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/visitors/visitor.rb
    31 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.2.1/strscan.bundle
    32 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/scalar_scanner.rb
    33 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/visitors/to_ruby.rb
    34 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/visitors/emitter.rb
    35 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/visitors/yaml_tree.rb
    36 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/json/ruby_events.rb
    37 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/visitors/json_tree.rb
    38 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/visitors/depth_first.rb
    39 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/visitors.rb
    40 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/handler.rb
    41 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/tree_builder.rb
    42 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/parser.rb
    43 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/omap.rb
    44 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/set.rb
    45 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/coder.rb
    46 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/core_ext.rb
    47 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.2.1/date_core.bundle
    48 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/date/format.rb
    49 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/date.rb
    50 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/deprecated.rb
    51 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/stream.rb
    52 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/json/yaml_events.rb
    53 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/json/tree_builder.rb
    54 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/json/stream.rb
    55 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych/handlers/document_stream.rb
    56 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/psych.rb
    57 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/yaml.rb
    58 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.2.1/etc.bundle
    59 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/fileutils.rb
    60 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.2.1/pathname.bundle
    61 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/pathname.rb
    62 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/gem_path_manipulation.rb
    63 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/gem_helpers.rb
    64 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/match_platform.rb
    65 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/rubygems_ext.rb
    66 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/user_interaction.rb
    67 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/config_file.rb
    68 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb
    69 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/version.rb
    70 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb
    71 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-unload-1.0.1/lib/bundler-unload.rb
    72 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.2.1/digest.bundle
    73 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/digest.rb
    74 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.2.1/digest/sha1.bundle
    75 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/environment.rb
    76 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb
    77 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb
    78 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/settings.rb
    79 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/set.rb
    80 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/definition.rb
    81 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/dependency.rb
    82 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/ruby_dsl.rb
    83 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/dsl.rb
    84 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/source.rb
    85 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/uri/common.rb
    86 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/uri/generic.rb
    87 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/uri/ftp.rb
    88 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/uri/http.rb
    89 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/uri/https.rb
    90 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/uri/ldap.rb
    91 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/uri/ldaps.rb
    92 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/uri/mailto.rb
    93 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/uri.rb
    94 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.2.1/socket.bundle
    95 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/socket.rb
    96 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.2.1/fcntl.bundle
    97 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/timeout.rb
    98 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/thread.rb
    99 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.2.1/openssl.bundle
    100 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/openssl/bn.rb
    101 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/openssl/cipher.rb
    102 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/openssl/config.rb
    103 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/openssl/digest.rb
    104 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/openssl/x509.rb
    105 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/openssl/buffering.rb
    106 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/openssl/ssl.rb
    107 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/openssl.rb
    108 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/securerandom.rb
    109 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/resolv.rb
    110 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/remote_fetcher.rb
    111 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/text.rb
    112 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/name_tuple.rb
    113 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/rubygems/spec_fetcher.rb
    114 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb
    115 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/source/path.rb
    116 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/source/git.rb
    117 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/lockfile_parser.rb
    118 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/lazy_specification.rb
    119 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/tsort.rb
    120 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/forwardable.rb
    121 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb
    122 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/index.rb
    123 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/remote_specification.rb
    124 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/endpoint_specification.rb
    125 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/source/git/git_proxy.rb
    126 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/dep_proxy.rb
    127 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/rubygems-bundler-1.2.2/lib/rubygems-bundler/noexec.rb
    128 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/time.rb
    129 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/filter_manager.rb
    130 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/dsl.rb
    131 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/extensions/kernel.rb
    132 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/extensions/instance_eval_with_args.rb
    133 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/extensions/module_eval_with_args.rb
    134 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/extensions/ordered.rb
    135 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/deprecation.rb
    136 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/backward_compatibility.rb
    137 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/reporter.rb
    138 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/metadata_hash_builder.rb
    139 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/hooks.rb
    140 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/memoized_helpers.rb
    141 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/metadata.rb
    142 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/pending.rb
    143 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/formatters.rb
    144 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/world.rb
    145 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/backtrace_cleaner.rb
    146 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/ruby_project.rb
    147 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/formatters/deprecation_formatter.rb
    148 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb
    149 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/project_initializer.rb
    150 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/optparse.rb
    151 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/option_parser.rb
    152 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/cgi/util.rb
    153 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/erb.rb
    154 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/shellwords.rb
    155 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/configuration_options.rb
    156 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb
    157 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb
    158 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/example.rb
    159 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/shared_example_group/collection.rb
    160 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/shared_example_group.rb
    161 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb
    162 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core/version.rb
    163 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/core.rb
    164 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/rspec-core-2.14.7/lib/rspec/autorun.rb
    165 /Users/semen/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/setup.rb
    166 /Users/semen/Sites/ruby/games/config/boot.rb
    167 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/ruby_version_check.rb
    168 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/thread_safe-0.1.3/lib/thread_safe/version.rb
    169 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/delegate.rb
    170 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/thread_safe-0.1.3/lib/thread_safe/synchronized_delegator.rb
    171 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/thread_safe-0.1.3/lib/thread_safe.rb
    172 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/array/prepend_and_append.rb
    173 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/hash/deep_merge.rb
    174 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/hash/except.rb
    175 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/hash/slice.rb
    176 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/i18n-0.6.5/lib/i18n/version.rb
    177 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/i18n-0.6.5/lib/i18n/exceptions.rb
    178 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/i18n-0.6.5/lib/i18n/interpolate/ruby.rb
    179 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/i18n-0.6.5/lib/i18n.rb
    180 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb
    181 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/i18n-0.6.5/lib/i18n/config.rb
    182 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/i18n.rb
    183 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/thread_safe-0.1.3/lib/thread_safe/non_concurrent_cache_backend.rb
    184 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/thread_safe-0.1.3/lib/thread_safe/mri_cache_backend.rb
    185 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/thread_safe-0.1.3/lib/thread_safe/cache.rb
    186 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/inflector/inflections.rb
    187 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/inflections.rb
    188 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/inflector/methods.rb
    189 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/dependencies/autoload.rb
    190 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/version.rb
    191 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/array/extract_options.rb
    192 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/class/attribute_accessors.rb
    193 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/concern.rb
    194 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/logger_silence.rb
    195 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/monitor.rb
    196 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/logger.rb
    197 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/logger.rb
    198 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support.rb
    199 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/tmpdir.rb
    200 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/tempfile.rb
    201 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/kernel/reporting.rb
    202 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/object/blank.rb
    203 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/key_generator.rb
    204 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/railties-4.0.0/lib/rails/initializable.rb
    205 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/singleton.rb
    206 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/kernel/singleton_class.rb
    207 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/module/delegation.rb
    208 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/deprecation/instance_delegator.rb
    209 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb
    210 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/mutex_m.rb
    211 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/notifications/fanout.rb
    212 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/per_thread_registry.rb
    213 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/notifications.rb
    214 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/deprecation/behaviors.rb
    215 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/deprecation/reporting.rb
    216 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/module/aliasing.rb
    217 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/deprecation/method_wrappers.rb
    218 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/deprecation/proxy_wrappers.rb
    219 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/module/deprecation.rb
    220 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/deprecation.rb
    221 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/ordered_options.rb
    222 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/object/acts_like.rb
    223 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/x86_64-darwin12.2.1/bigdecimal.bundle
    224 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/object/duplicable.rb
    225 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/object/deep_dup.rb
    226 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/object/try.rb
    227 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/object/inclusion.rb
    228 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/object/to_param.rb
    229 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/object/to_query.rb
    230 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/base64.rb
    231 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/multibyte.rb
    232 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/string/multibyte.rb
    233 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/inflector/transliterate.rb
    234 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/string/inflections.rb
    235 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/xml_mini/rexml.rb
    236 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/xml_mini.rb
    237 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/hash/keys.rb
    238 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/array/conversions.rb
    239 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/time/acts_like.rb
    240 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/proxy_object.rb
    241 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/duration.rb
    242 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/values/time_zone.rb
    243 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/time/conversions.rb
    244 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/time_with_zone.rb
    245 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/time/zones.rb
    246 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/date_and_time/calculations.rb
    247 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/time/calculations.rb
    248 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/time/marshal.rb
    249 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/time.rb
    250 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/date/acts_like.rb
    251 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/date/zones.rb
    252 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/date/calculations.rb
    253 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/module/remove_method.rb
    254 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/date/conversions.rb
    255 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/date.rb
    256 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/date_time/acts_like.rb
    257 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/date_time/calculations.rb
    258 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/date_time/conversions.rb
    259 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/date_time/zones.rb
    260 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/date_time.rb
    261 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/numeric/time.rb
    262 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/integer/time.rb
    263 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/string/conversions.rb
    264 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/string/zones.rb
    265 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/time.rb
    266 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/array/wrap.rb
    267 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/hash/reverse_merge.rb
    268 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/hash/conversions.rb
    269 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/object/conversions.rb
    270 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/activesupport-4.0.0/lib/active_support/core_ext/object/instance_variables.rb
    271 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/json-1.8.1/lib/json/version.rb
    272 /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/2.0.0/ostruct.rb
    273 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/json-1.8.1/lib/json/generic_object.rb
    274 /Users/semen/.rvm/gems/ruby-2.0.0-p247@games/gems/json-1.8.1/lib/json/common.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Command terminated

But when i run specs in vagrant env on ubuntu 12, spec run fine.

Open result in quickfix window

Not sure if this is an issue or not, but would it be possible to open the results in the vim quickfix window? instead of returning to the terminal?

Errors when running rspec tests in vim

I'm running vim inside of tmux. Whenever I run rspec by itself from a terminal, the tests work fine. If I execute rspec within vim via call RunNearestSpec(), I get a bunch of errors.

:!clear && echo rspec spec/controllers/applications_controller_spec.rb:1 && rspec spec/controllers/applications_controller_spec.rb:1                                                                                                          

 [H [Jrspec spec/controllers/applications_controller_spec.rb:1                                                                                                                                                                                
Ignoring bcrypt-3.1.10 because its extensions are not built.  Try: gem pristine bcrypt --version 3.1.10                                                                                                                                       
Ignoring bcrypt-ruby-3.1.2 because its extensions are not built.  Try: gem pristine bcrypt-ruby --version 3.1.2                                                                                                                               
Ignoring binding_of_caller-0.7.2 because its extensions are not built.  Try: gem pristine binding_of_caller --version 0.7.2                                                                                                                   
Ignoring byebug-5.0.0 because its extensions are not built.  Try: gem pristine byebug --version 5.0.0                                                                                                                                         
Ignoring byebug-2.7.0 because its extensions are not built.  Try: gem pristine byebug --version 2.7.0                                                                                                                                         
Ignoring debug_inspector-0.0.2 because its extensions are not built.  Try: gem pristine debug_inspector --version 0.0.2                                                                                                                       
Ignoring executable-hooks-1.3.2 because its extensions are not built.  Try: gem pristine executable-hooks --version 1.3.2                                                                                                                     
Ignoring ffi-1.9.8 because its extensions are not built.  Try: gem pristine ffi --version 1.9.8                                                                                                                                               
Ignoring gem-wrappers-1.2.7 because its extensions are not built.  Try: gem pristine gem-wrappers --version 1.2.7                                                                                                                             
Ignoring hitimes-1.2.2 because its extensions are not built.  Try: gem pristine hitimes --version 1.2.2                                                                                                                                       
Ignoring json-1.8.3 because its extensions are not built.  Try: gem pristine json --version 1.8.3                                                                                                                                             
Ignoring json-1.8.2 because its extensions are not built.  Try: gem pristine json --version 1.8.2                                                                                                                                             
Ignoring kgio-2.9.2 because its extensions are not built.  Try: gem pristine kgio --version 2.9.2                                                                                                                                             
Ignoring msgpack-0.5.11 because its extensions are not built.  Try: gem pristine msgpack --version 0.5.11                                                                                                                                     
Ignoring mysql2-0.3.16 because its extensions are not built.  Try: gem pristine mysql2 --version 0.3.16                                                                                                                                       
Ignoring nokogiri-1.6.6.2 because its extensions are not built.  Try: gem pristine nokogiri --version 1.6.6.2                                                                                                                                 
Ignoring nokogumbo-1.1.12 because its extensions are not built.  Try: gem pristine nokogumbo --version 1.1.12                                                                                                                                 
Ignoring pg-0.18.2 because its extensions are not built.  Try: gem pristine pg --version 0.18.2                                                                                                                                               
Ignoring raindrops-0.13.0 because its extensions are not built.  Try: gem pristine raindrops --version 0.13.0                                                                                                                                 
Ignoring sqlite3-1.3.10 because its extensions are not built.  Try: gem pristine sqlite3 --version 1.3.10                                                                                                                                     
Ignoring unf_ext-0.0.7.1 because its extensions are not built.  Try: gem pristine unf_ext --version 0.0.7.1                                                                                                                                   
Ignoring unicorn-4.8.3 because its extensions are not built.  Try: gem pristine unicorn --version 4.8.3                                                                                                                                       
Ignoring websocket-driver-0.5.4 because its extensions are not built.  Try: gem pristine websocket-driver --version 0.5.4                                                                                                                     
/Users/jmcginnis/.rvm/gems/ruby-2.2.2/gems/bundler-1.9.9/lib/bundler/definition.rb:379:in `validate_ruby!': Your Ruby version is 2.0.0, but your Gemfile specified 2.2.2 (Bundler::RubyVersionMismatch)                                       
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/gems/bundler-1.9.9/lib/bundler.rb:118:in `setup'                                                                                                                                                  
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/gems/bundler-1.9.9/lib/bundler/setup.rb:18:in `<top (required)>'                                                                                                                                  
 from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:128:in `require'                                                                                                                                                           
 from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'                                                                                                                                                 
 from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:39:in `require'                                                                                                                                                            
 from /Users/jmcginnis/sandbox/trinet/hire/config/boot.rb:4:in `<top (required)>'                                                                                                                                                             
 from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'                                                                                                                                                            
 from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'                                                                                                                                                            
 from /Users/jmcginnis/sandbox/trinet/hire/config/application.rb:1:in `<top (required)>'                                                                                                                                                      
 from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'                                                                                                                                                            
 from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'                                                                                                                                                            
 from /Users/jmcginnis/sandbox/trinet/hire/config/environment.rb:2:in `<top (required)>'                                                                                                                                                      
 from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'                                                                                                                                                            
 from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'                                                                                                                                                            
 from /Users/jmcginnis/sandbox/trinet/hire/spec/spec_helper.rb:2:in `<top (required)>'                                                                                                                                                        
 from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'                                                                                                                                                            
 from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'                                                                                                                                                            
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1181:in `block in requires='                                                                                                                
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1181:in `each'                                                                                                                              
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1181:in `requires='                                                                                                                         
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.2.3/lib/rspec/core/configuration_options.rb:110:in `block in process_options_into'                                                                                              
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.2.3/lib/rspec/core/configuration_options.rb:109:in `each'                                                                                                                       
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.2.3/lib/rspec/core/configuration_options.rb:109:in `process_options_into'                                                                                                       
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.2.3/lib/rspec/core/configuration_options.rb:22:in `configure'                                                                                                                   
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:96:in `setup'                                                                                                                                      
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:85:in `run'                                                                                                                                        
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:70:in `run'                                                                                                                                        
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:38:in `invoke'                                                                                                                                     
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.2.3/exe/rspec:4:in `<top (required)>'                                                                                                                                           
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/bin/rspec:23:in `load'                                                                                                                                                                            
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/bin/rspec:23:in `<main>'                                                                                                                                                                          
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `eval'                                                                                                                                                            
 from /Users/jmcginnis/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `<main>'                                                                                                                                                          
shell returned 1                                                                                

rails_helper.rb is not loaded when running the RunNearestSpec.

when I run the RunNearestSpec using the mapped keys, the rails_helper is not loaded, which makes some problems for me. Since the configuration for the database cleaner gem is added to that file, it is not loaded and thus the database cleaner does not clean my database.
This problem does not exists with the other commands, like RunCurrentSpecFile, and RunAllSpecs

Error when installing plugin with Vundle

Hey,

I'm installing this plugin with Vundle and I'm gettings this error:

Eror detected while processing /Users/justas/.dotfiles/vim/vim.symlink/bundle/vim-rspec/plugin/rspec.vim:
line   70:
E122: Function <SNR>40_DefaultTerminalCommand already exists, add ! to replace it
line   74:
E122: Function <SNR>40_CurrentFilePath already exists, add ! to replace it
line   78:
E122: Function <SNR>40_GuiCommand already exists, add ! to replace it

Not working with fish shell

I've switched from zsh recently to fish; here's output when I now try to run my standard RunNearestSpec() command (which for me is <Leader>s):

Error detected while processing function dispatch#tmux#poll..dispatch#complete..<SNR>78_cgetfile:
line   19:
E40: Can't open errorfile /var/folders/zt/sbd8h94n38920pr639nyw0rm0000gn/T/v6AiA2z/18
Error detected while processing function RunNearestSpec:
line    5:
E171: Missing :endif
Press ENTER or type command to continue

I can't tell if this is an issue with vim-rspec or vim-dispatch though... cc @tpope

what does this mean ?

i notice this line in doc "If using zsh on OS X it may be necessary to run move /etc/zshenv to /etc/zshrc."

copy the content of /etc/zshenv to /etc/zshrc ?

thanks !

Strange output when running specs with tmux and base16-shell

I'm seeing the following when running a spec:

�Ptmux;��]4;0;rgb:1b/19/18��\�Ptmux;��]4;1;rgb:f2/2c/40��\�Ptmux;��]4;2;rgb:5a/b7/38��\�Ptmux;��]4;3;rgb:d5/91/1a��\�Ptmux;��]4;4;rgb:40/7e/e7��\�Ptmux;��]4;5;rgb:66/66/ea��\�Ptmux;��]4;6;rgb:00/ad/9c��\�Ptmux;��]4;7;rgb:a8/a1/9f��\�Ptmux;��]4;8;rgb:76/6e/6b��\�Ptmux;��]4;9;rgb:f2/2c/40��\�Ptmux;��]4;10;rgb:5a/b7/38��\�Ptmux;��]4;11;rgb:d5/91/1a��\�Ptmux;��]4;12;rgb:40/7e/e7��\�Ptmux;��]4;13;rgb:66/66/ea��\�Ptmux;��]4;14;rgb:00/ad/9c��\�Ptmux;��]4;15;rgb:f1/ef/ee��\�Ptmux;��]4;16;rgb:df/53/20��\�Ptmux;��]4;17;rgb:c3/3f/f3��\�Ptmux;��]4;18;rgb:2c/24/21��\�Ptmux;��]4;19;rgb:68/61/5e��\�Ptmux;��]4;20;rgb:9c/94/91��\�Ptmux;��]4;21;rgb:e6/e2/e0��\�Ptmux;��]Pg68615e��\�Ptmux;��]Phf1efee��\�Ptmux;��]Pi68615e��\�Ptmux;��]Pja8a19f��\�Ptmux;��]Pk68615e��\�Ptmux;��]Pl68615e��\�Ptmux;��]Pmf1efee��\ERROR STARTS HERE

My setup includes fish, tmux, and https://github.com/chriskempson/base16-shell. This only happens when I run a base16-shell script, so it might be an issue there.

Line number and shared examples

When I run the current test in a spec file with shared_examples, then rspec does not run my test, but another.

I think because shared_examples are "injected" into the spec file, fooling the line number mechanism.

Is it just me?

MacVim not reactivating with iTerm in Yosemite

I'm not sure if this is truly an issue, but I ran into an issue after updating to Yosemite where the apple script would not reactivate MacVim after running the test command. The result was my keyboard focus stayed in iTerm rather than returning to MacVim. I was able to get the desired functionality to return by inserting a delay 0.01 before the tell application "MacVim" line in the bin/os_x_iterm file.

This may not be an issue with the vim-rspec plugin, but I wanted to put this out there in case others were running into the same issue.

Not sending commands to iTerm or Terminal in El Capitan

Prior to upgrading to OS X El Capitan (10.11.1), I was able to trigger specs from MacVim and have them executed in iTerm 2. Here's the relevant portion of my .vimrc:

Plugin 'thoughtbot/vim-rspec'
if has("gui_macvim")
  let g:rspec_command = "zeus rspec {spec}"
  let g:rspec_runner = "os_x_iterm"
else
  let g:rspec_command = "!zeus rspec {spec}"
endif

After the upgrade, I can trigger specs in terminal Vim, but I cannot trigger them from MacVim. :call RunCurrentSpecFile() (or any of the other spec functions) does nothing. No failure message or any other kind of feedback. No activity in iTerm.

I tried changing let g:rspec_runner = "os_x_terminal", and still no dice.

Note that I did a clean install of El Capitan, so it's entirely possible that I've set something up incorrectly. I'm just not sure where to even look.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.