forked from vim-test/vim-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproper_spec.vim
53 lines (41 loc) · 1.19 KB
/
proper_spec.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
source spec/support/helpers.vim
describe 'PropEr'
before
cd spec/fixtures/proper
end
after
call Teardown()
cd -
end
context 'when executed with :TestFile'
it 'runs properties for corresponding module'
view test/prop_foo.erl
TestFile
Expect g:test#last_command is# 'rebar3 proper --module=prop_foo'
end
end
context 'when executed with :TestNearest'
it 'runs the property under the cursor'
view +/prop_bar test/prop_foo.erl
TestNearest
Expect g:test#last_command is# 'rebar3 proper --module=prop_foo --prop=prop_bar'
view +/prop_baz/+1 test/prop_foo.erl
TestNearest
Expect g:test#last_command is# 'rebar3 proper --module=prop_foo --prop=prop_baz'
end
context 'when there is no property under the cursor'
it 'runs properties for corresponding module'
view +1 test/prop_foo.erl
TestNearest
Expect g:test#last_command is# 'rebar3 proper --module=prop_foo'
end
end
end
context 'when executed with :TestSuite'
it 'runs all property test suites'
view test/prop_foo.erl
TestSuite
Expect g:test#last_command is# 'rebar3 proper'
end
end
end