You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just used transpec for the first time on a small project; nice work... it performed 967 conversions for me; sure beats doing it yourself.
However, it crashed at the end trying to write to a file in a non-existent .git directory; non-existent because I was running inside a submodule, where .git is just a text file with a gitdir link inside of it.
/Users/glh/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/transpec-2.3.7/lib/transpec/git.rb:35:in `write': Not a directory @ rb_sysopen - /Users/glh/code/walrus/src/vendor/walrat/.git/COMMIT_EDITMSG (Errno::ENOTDIR)
from /Users/glh/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/transpec-2.3.7/lib/transpec/git.rb:35:in `write_commit_message'
from /Users/glh/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/transpec-2.3.7/lib/transpec/cli.rb:132:in `generate_commit_message'
from /Users/glh/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/transpec-2.3.7/lib/transpec/cli.rb:41:in `run'
from /Users/glh/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/transpec-2.3.7/lib/transpec/cli.rb:19:in `run'
from /Users/glh/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/transpec-2.3.7/bin/transpec:7:in `<top (required)>'
from bin/transpec:16:in `load'
from bin/transpec:16:in `<main>'
The text was updated successfully, but these errors were encountered:
wincent
added a commit
to wincent/walrat
that referenced
this issue
Oct 20, 2014
Did this with the help of the transpec gem. Contrary to the README, I
found I did need to add it to the Gemfile (although obviously, I removed
it immediately afterwards).
Additionally it crashed trying to open `.git/COMMIT_EDITMSG` after the
conversion had completed, because I was running it from inside a
submodule; upstream issue for that:
yujinakayama/transpec#94
Here are the relevant bits of the output:
Summary:
415 conversions
from: obj.should
to: expect(obj).to
382 conversions
from: == expected
to: eq(expected)
100 conversions
from: lambda { }.should
to: expect { }.to
35 conversions
from: obj.should_not
to: expect(obj).not_to
32 conversions
from: lambda { }.should_not
to: expect { }.not_to
2 conversions
from: it { should_not ... }
to: it { is_expected.not_to ... }
1 conversion
from: it { should ... }
to: it { is_expected.to ... }
967 conversions, 0 incompletes, 0 warnings, 0 errors
Sure beats doing it by hand, or even with Vim macros...
Just used transpec for the first time on a small project; nice work... it performed 967 conversions for me; sure beats doing it yourself.
However, it crashed at the end trying to write to a file in a non-existent
.git
directory; non-existent because I was running inside a submodule, where.git
is just a text file with agitdir
link inside of it.The text was updated successfully, but these errors were encountered: