Permalink
Browse files

Set up `rake test` runner and use VimFlavor

  • Loading branch information...
1 parent 98db97c commit ddff49cf5bdebac993641e28af406690df61d470 @nelstrom committed Nov 15, 2013
View
@@ -1 +1,3 @@
Session.vim
+.vim-flavor/
+VimFlavor.lock
View
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+gem 'vim-flavor', '~> 1.1'
+
View
@@ -0,0 +1,16 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ blankslate (2.1.2.4)
+ parslet (1.5.0)
+ blankslate (~> 2.0)
+ thor (0.18.1)
+ vim-flavor (1.1.2)
+ parslet (~> 1.0)
+ thor (~> 0.14)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ vim-flavor (~> 1.1)
View
@@ -0,0 +1,13 @@
+#!/usr/bin/env rake
+
+task :default => :test
+
+task :ci => [:dump, :test]
+
+task :dump do
+ sh 'vim --version'
+end
+
+task :test do
+ sh 'bundle exec vim-flavor test'
+end
View
@@ -0,0 +1 @@
+flavor 'kana/vim-textobj-user', '~> 0.3'
File renamed without changes.
@@ -1,4 +1,3 @@
-" nnoremap <leader>r :wa <bar> ! ../vspec/bin/vspec ../vspec/ ../textobj-user . test/rubyblock_test.vim<CR>
silent filetype indent plugin on
runtime! macros/matchit.vim
runtime! plugin/textobj/*.vim
@@ -58,7 +57,7 @@ end
describe '<Plug>(textobj-rubyblock-i)'
before
- silent tabnew test/samples/class.rb
+ silent tabnew t/samples/class.rb
end
after
@@ -74,7 +73,7 @@ end
describe '<Plug>(textobj-rubyblock-a)'
before
- silent tabnew test/samples/class.rb
+ silent tabnew t/samples/class.rb
end
after
@@ -90,7 +89,7 @@ end
describe '<Plug>(textobj-rubyblock-i)'
before
- silent tabnew test/samples/commented-end.rb
+ silent tabnew t/samples/commented-end.rb
end
after
@@ -108,7 +107,7 @@ end
describe 'if/else blocks'
before
- silent tabnew test/samples/if-else.rb
+ silent tabnew t/samples/if-else.rb
end
after
@@ -143,7 +142,7 @@ end
describe 'nested blocks: (module > class > def > do)'
before
- silent tabnew test/samples/nested-blocks.rb
+ silent tabnew t/samples/nested-blocks.rb
end
after
@@ -242,7 +241,7 @@ describe 'rubyblocks with a method call'
end
it 'handles `end.max` style method invocations'
- silent tabnew test/samples/map-dot-max.rb
+ silent tabnew t/samples/map-dot-max.rb
Expect SelectInsideFrom(2, '^') ==# [2, 2, 2]
Expect SelectAroundFrom(2, '^') ==# [2, 1, 3]
end
@@ -252,7 +251,7 @@ end
describe 'oneline conditionals'
before
- silent tabnew test/samples/oneline-conditionals.rb
+ silent tabnew t/samples/oneline-conditionals.rb
end
after
File renamed without changes.
@@ -0,0 +1,3 @@
+class Foo
+ # this is a comment with no end
+end
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,3 +0,0 @@
-class Foo
- # this is a comment with no *end
-end

0 comments on commit ddff49c

Please sign in to comment.