test/mws/orders/test_tokenable.rb in mws-orders-0.2.2 vs test/mws/orders/test_tokenable.rb in mws-orders-0.3.0
- old
+ new
@@ -1,20 +1,22 @@
+# frozen_string_literal: true
+
require 'test_helper'
class TestTokenable < MiniTest::Test
def test_parses_next_token
- xml = <<-EOF
+ xml = <<-XML
<NextToken xmlns="example">123</NextToken>
- EOF
+ XML
tokenable = build_tokenable(xml)
assert_equal '123', tokenable.next_token
end
def test_returns_nil_if_next_token_is_not_present
- xml = <<-EOF
+ xml = <<-XML
<Foo xmlns="example"/>
- EOF
+ XML
tokenable = build_tokenable(xml)
refute tokenable.next_token
end