Permalink
Browse files

slightly improved spec

  • Loading branch information...
1 parent 758e481 commit 87bff1a0e5f4e8db954da5f064f08b34c23e2e80 @nakajima committed Dec 16, 2008
Showing with 5 additions and 3 deletions.
  1. +5 −3 spec/syntaxily_spec.rb
View
8 spec/syntaxily_spec.rb
@@ -32,13 +32,15 @@ def render
def render
Syntaxily.parse <<-TEXT
<h1>This is normal</h1>
-
<pre class="code" rel="ruby">def foo; :bar end</pre>
-
- <p>Good bye</p>
+ <h1>Good bye</h1>
TEXT
end
+ it "retains old markup" do
+ result.should have(2).headers
+ end
+
it "syntax highlights within pre tag" do
result.should have(2).keywords
result.should have(1).keywords.with_text('def')

0 comments on commit 87bff1a

Please sign in to comment.