diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2018-04-08 23:51:15 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2018-04-08 23:51:15 -0600 |
| commit | eebcac420a22f559e85c2c0a067e368de2de5d43 (patch) | |
| tree | 5f75c101ff553be76b13c32d02eca2b9dac60ebb /test/attributes_test.rb | |
| parent | ae062525fe6055d8ce0c18d2fb74af8a538b8e09 (diff) | |
purge render method from test suite (except to verify alias)
- replace use of render method with convert method
Diffstat (limited to 'test/attributes_test.rb')
| -rw-r--r-- | test/attributes_test.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/attributes_test.rb b/test/attributes_test.rb index 4f6cda9a..cc8f4847 100644 --- a/test/attributes_test.rb +++ b/test/attributes_test.rb @@ -574,7 +574,7 @@ all there is. test "attribute value gets interpretted when rendering" do doc = document_from_string(":google: http://google.com[Google]\n\n{google}") assert_equal 'http://google.com[Google]', doc.attributes['google'] - output = doc.render + output = doc.convert assert_xpath '//a[@href="http://google.com"][text() = "Google"]', output, 1 end @@ -703,7 +703,7 @@ v1.0, 2010-01-01: First release! assert_equal 'value', doc.attr('a') assert_equal 'value', doc.attr('a2') - output = doc.render + output = doc.convert assert_includes output, 'value == value' assert_includes output, '2010-01-01 == 2010-01-01' end @@ -891,7 +891,7 @@ of the attribute named foo in your document. EOS doc = document_from_string input - output = doc.render + output = doc.convert assert_equal 1, doc.attributes['mycounter'] assert_xpath '//p[text()="1"]', output, 1 end @@ -902,7 +902,7 @@ of the attribute named foo in your document. EOS doc = document_from_string input - output = doc.render + output = doc.convert assert_equal 1, doc.attributes['mycounter'] assert_xpath '//p[text()="1"]', output, 0 end @@ -913,7 +913,7 @@ of the attribute named foo in your document. EOS doc = document_from_string input - doc.render + doc.convert assert_equal 10, doc.attributes['mycounter'] end @@ -923,7 +923,7 @@ of the attribute named foo in your document. EOS doc = document_from_string input - doc.render + doc.convert assert_equal 'A', doc.attributes['mycounter'] end @@ -937,7 +937,7 @@ of the attribute named foo in your document. EOS doc = document_from_string input - output = doc.render + output = doc.convert assert_equal 2, doc.attributes['mycounter'] assert_xpath '//p[text()="2"]', output, 2 end @@ -952,7 +952,7 @@ of the attribute named foo in your document. EOS doc = document_from_string input - output = doc.render + output = doc.convert assert_equal 'A', doc.attributes['mycounter'] assert_xpath '//p[text()="A"]', output, 2 end @@ -967,7 +967,7 @@ of the attribute named foo in your document. EOS doc = document_from_string input - output = doc.render :header_footer => false + output = doc.convert :header_footer => false assert_equal 1, doc.attributes['mycounter'] assert_xpath '//p[text()="1"]', output, 2 end @@ -984,7 +984,7 @@ after: {counter:mycounter} EOS doc = document_from_string input - output = doc.render :header_footer => false + output = doc.convert :header_footer => false assert_equal 1, doc.attributes['mycounter'] assert_xpath '//p[text()="before: 1 2 3"]', output, 1 assert_xpath '//p[text()="after: 1"]', output, 1 |
