Sha256: 1b3fa848758d9e89f864ac8a6c4be613809d8faa881e755282a272f5407b2d0d
Contents?: true
Size: 598 Bytes
Versions: 21
Compression:
Stored size: 598 Bytes
Contents
# -*- encoding : utf-8 -*- describe Card::Set::All::Links do require "card" describe "#link_to_resource" do it "opens external link in new tab" do actual = Card["Home"].format.link_to_resource "http://example.com" expected = 'a[class="external-link"][target="_blank"]' \ '[href="http://example.com"]' assert_view_select actual, expected end it "opens interal link in same tab" do actual = Card["Home"].format.link_to_resource "/Home" expected = 'a[target="_blank"]' assert_view_select actual, expected, false end end end
Version data entries
21 entries across 21 versions & 1 rubygems