Sha256: 20456b2e6b03e2f1c1e2c819e845373f3fc4d2ccdb4d4a514941243e361a665e
Contents?: true
Size: 579 Bytes
Versions: 1
Compression:
Stored size: 579 Bytes
Contents
require 'test_helper' class TestTokenable < MiniTest::Test def test_parses_next_token xml = <<-EOF <NextToken xmlns="example">123</NextToken> EOF tokenable = build_tokenable(xml) assert_equal '123', tokenable.next_token end def test_returns_nil_if_next_token_is_not_present xml = <<-EOF <Foo xmlns="example"/> EOF tokenable = build_tokenable(xml) refute tokenable.next_token end private def build_tokenable(xml) klass = Class.new(Collection) do include Tokenable end klass.new(Nokogiri(xml)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mws-orders-0.2.2 | test/mws/orders/test_tokenable.rb |