diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2013-01-03 12:45:34 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2013-01-03 12:45:34 -0700 |
| commit | 47f24bf1f10231bacd4f136a2f6c87339efe659a (patch) | |
| tree | 37ef2242d3563304177c017d6004f306033faeae /test/text_test.rb | |
| parent | 57d4f1e34595d540cbd4225b321429407e177ec2 (diff) | |
fix warnings
Diffstat (limited to 'test/text_test.rb')
| -rw-r--r-- | test/text_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/text_test.rb b/test/text_test.rb index 497bee17..de8695b6 100644 --- a/test/text_test.rb +++ b/test/text_test.rb @@ -21,8 +21,8 @@ context "Text" do end test 'escaped text markup' do - assert_match /All your <em>inline<\/em> markup belongs to <strong>us<\/strong>!/, - render_string('All your <em>inline</em> markup belongs to <strong>us</strong>!') + assert_match(/All your <em>inline<\/em> markup belongs to <strong>us<\/strong>!/, + render_string('All your <em>inline</em> markup belongs to <strong>us</strong>!')) end test "line breaks" do @@ -31,8 +31,8 @@ context "Text" do test "single- and double-quoted text" do rendered = render_string("``Where?,'' she said, flipping through her copy of `The New Yorker.'") - assert_match /“Where\?,”/, rendered - assert_match /‘The New Yorker.’/, rendered + assert_match(/“Where\?,”/, rendered) + assert_match(/‘The New Yorker.’/, rendered) end test "separator" do @@ -69,11 +69,11 @@ context "Text" do end test "unquoted text" do - assert_no_match /#/, render_string("An #unquoted# word") + assert_no_match(/#/, render_string("An #unquoted# word")) end test "backtick-escaped text followed by single-quoted text" do - assert_match /<tt>foo<\/tt>/, render_string(%Q(run `foo` 'dog')) + assert_match(/<tt>foo<\/tt>/, render_string(%Q(run `foo` 'dog'))) end context "basic styling" do |
