Permalink
Browse files

Move some specs around

  • Loading branch information...
1 parent 2ff5d11 commit ff0168accb871356ebc0d3efcdea1eb2979faf82 @AndrewRadev committed Feb 25, 2013
Showing with 27 additions and 31 deletions.
  1. +27 −0 spec/plugin/compatibility_spec.rb
  2. +0 −31 spec/plugin/different_registers_spec.rb
@@ -18,4 +18,31 @@
one
EOF
end
+
+ it "can use a register other than the default one" do
+ set_file_contents <<-EOF
+ one
+ two
+ EOF
+
+ vim.search('one').normal('V"ay')
+ vim.search('two').normal('V"by')
+
+ vim.command("call feedkeys('\"ap')")
+ vim.write
+ assert_file_contents <<-EOF
+ one
+ two
+ one
+ EOF
+
+ vim.command("call feedkeys('\"bp')")
+ vim.write
+ assert_file_contents <<-EOF
+ one
+ two
+ one
+ two
+ EOF
+ end
end
@@ -1,31 +0,0 @@
-require 'spec_helper'
-
-describe "Different registers" do
- let(:filename) { 'test.txt' }
- let(:vim) { @vim }
-
- it "can use a register other than the default one" do
- set_file_contents <<-EOF
- one
- two
- EOF
-
- vim.search('one').normal('V"ay')
- vim.search('two').normal('V"by')
-
- vim.normal('"ap').write
- assert_file_contents <<-EOF
- one
- two
- one
- EOF
-
- vim.normal('"bp').write
- assert_file_contents <<-EOF
- one
- two
- one
- two
- EOF
- end
-end

0 comments on commit ff0168a

Please sign in to comment.