Permalink
Browse files

Ensure that self-referential links work correctly. Closes #2

  • Loading branch information...
1 parent a3e65a3 commit cb0c1a54d7248a4ded288c640392fbd6e0af3c42 @joshuaclayton committed Nov 20, 2010
Showing with 16 additions and 0 deletions.
  1. +16 −0 features/cli.feature
View
@@ -95,3 +95,19 @@ Feature: Run palette from the command line
hi String guifg=#000000 ctermfg=16 guibg=#FFFFFF ctermbg=231
hi Float guifg=#FFFFFF ctermfg=231 guibg=#000000 ctermbg=16
"""
+
+ Scenario: Process a file where links are self-referential
+ Given a file named "valid_theme" with:
+ """
+ vim_colors "self-referential links" do
+ link :htmlTag, :to => :Type
+ link :htmlEndTag, :htmlTagName, :to => :htmlTag
+ end
+ """
+ When I run "palette valid_theme"
+ Then the output should contain:
+ """
+ hi link htmlTag Type
+ hi link htmlEndTag htmlTag
+ hi link htmlTagName htmlTag
+ """

0 comments on commit cb0c1a5

Please sign in to comment.