Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 638ba78

Browse filesBrowse files
committed
Tests are initialized.
1 parent b1beaae commit 638ba78
Copy full SHA for 638ba78

File tree

Expand file treeCollapse file tree

7 files changed

+51
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

7 files changed

+51
-1
lines changed
Open diff view settings
Collapse file

‎.gitignore‎

Copy file name to clipboard
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
*.py[cod]
2-
.vimrc
32
*.sw?
43
*~
54
.DS_Store
5+
.bundle
66
.ropeproject
7+
.vim-flavor
8+
.vimrc
9+
Gemfile.lock
10+
VimFlavor.lock
711
tags
12+
test.py
813
todo.txt
14+
vendor
Collapse file

‎.ruby-gemset‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vim-flavor
Collapse file

‎.ruby-version‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby-1.9.3
Collapse file

‎Gemfile‎

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'vim-flavor', '~> 1.1'
Collapse file

‎Makefile‎

Copy file name to clipboard
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
.PHONY: clean
22
clean:
33
find . -name "*.pyc" -delete
4+
5+
.PHONY: test
6+
test:
7+
rake test
Collapse file

‎Rakefile‎

Copy file name to clipboard
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env rake
2+
3+
task :ci => [:dump, :test]
4+
5+
task :dump do
6+
sh 'vim --version'
7+
end
8+
9+
task :test do
10+
sh 'bundle exec vim-flavor test'
11+
end
Collapse file

‎t/pymode.vim‎

Copy file name to clipboard
+24Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
filetype plugin indent on
2+
3+
describe 'pymode'
4+
5+
it 'pymode disabled by default'
6+
Expect get(g:, 'pymode', 42) == 42
7+
end
8+
9+
it 'pymode loading'
10+
e t/test.py
11+
Expect g:pymode == 1
12+
Expect g:pymode_init == 1
13+
Expect g:pymode_path == 1
14+
Expect g:pymode_lint == 1
15+
end
16+
17+
it 'pymode python interpreter'
18+
e test.py
19+
Python vim.current.buffer.append('Python is working.', 0)
20+
Expect getline(1) == 'Python is working.'
21+
w
22+
end
23+
24+
end

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.