diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2017-05-17 23:58:54 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2017-05-18 02:01:33 -0600 |
| commit | 57e29b50a96323b9265339e8a33b0406048a9bdc (patch) | |
| tree | d3a730d0a016f9f18aab907c56b158677b69f4e3 /features | |
| parent | 2aa25ed02c399e5ae6a871d4dcdb50716c7c936f (diff) | |
use IO.write instead of File.open w/ block
- use IO.write instead of File.open with block to write
- consistently use IO.read instead of File.read
- remove unnecessary root namespace in tests
Diffstat (limited to 'features')
| -rw-r--r-- | features/step_definitions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/features/step_definitions.rb b/features/step_definitions.rb index 3c0ae6f5..140ea4fa 100644 --- a/features/step_definitions.rb +++ b/features/step_definitions.rb @@ -20,7 +20,7 @@ end When /it is converted to html/ do @output = Asciidoctor.convert @source - #File.open('/tmp/test.adoc', 'w') {|f| f.write @source } + #IO.write '/tmp/test.adoc', @source #@output = %x{asciidoc -f compat/asciidoc.conf -o - -s /tmp/test.adoc | XMLLINT_INDENT='' xmllint --format - | tail -n +2}.rstrip ##@output = %x{asciidoc -f compat/asciidoc.conf -o - -s /tmp/test.adoc} end |
