|
24 | 24 | current_file_name.should eq "./app/js/piles-of-poo.js" |
25 | 25 | end |
26 | 26 |
|
27 | | - specify "should be found when the filename-is-dasherized since that is the default g:angular_filename_convention" do |
| 27 | + specify "should be found when the filename-is-dasherized" do |
28 | 28 | setup_filesystem('app/js/piles-of-poo.js') |
29 | 29 | find_definition('pilesOfPoo') |
30 | 30 | current_file_name.should eq "./app/js/piles-of-poo.js" |
31 | 31 | end |
32 | 32 |
|
33 | | - specify "should be found when the filenameIsCamelcased and g:angular_filename_convention is set to camelcased" do |
34 | | - assume_vimrc('let g:angular_filename_convention = "camelcased"') |
| 33 | + specify "should be found when the filenameIsCamelcased" do |
35 | 34 | setup_filesystem('app/js/pilesOfPoo.js') |
36 | 35 | find_definition('pilesOfPoo') |
37 | 36 | current_file_name.should eq "./app/js/pilesOfPoo.js" |
38 | 37 | end |
39 | 38 |
|
40 | | - specify "should be found when the FilenameIsTitlecased and g:angular_filename_convention is set to titlecased" do |
41 | | - assume_vimrc('let g:angular_filename_convention = "titlecased"') |
| 39 | + specify "should be found when the FilenameIsTitlecased" do |
42 | 40 | setup_filesystem('app/js/PilesOfPoo.js') |
43 | 41 | find_definition('PilesOfPoo') |
44 | 42 | current_file_name.should eq "./app/js/PilesOfPoo.js" |
45 | 43 | end |
46 | 44 |
|
47 | | - specify "should not be found when the FilenameIsTitlecased and g:angular_filename_convention is set to something not supported" do |
48 | | - assume_vimrc('let g:angular_filename_convention = "poopcased"') |
49 | | - setup_filesystem('app/js/PilesOfPoo.js') |
50 | | - find_definition('PilesOfPoo') |
51 | | - current_file_name.should eq 'starting-file.js' |
52 | | - end |
53 | | - |
54 | 45 | specify "should be a champ about avoiding full stops" do |
55 | 46 | setup_filesystem('app/js/piles-of-poo.js') |
56 | 47 | find_definition('PilesOfPoo.keepingStinking()') |
|
0 commit comments