Sha256: 6de448c8ea594abfd7cee992703833dacb1aaf6626e7a6fa25fb3476739003c0
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
require 'test_helper' class Rrssb::Rails::ButtonsHelperTest < ActionView::TestCase test "#rrssb_tag accepts url and buttons options" do identifier_url = 'http://myurl.com' result = rrssb_tag(url: identifier_url, buttons: %w{facebook twitter}) doc = HTML::Document.new(result) assert_select doc.root, "ul.rrssb-buttons" assert_select doc.root, "li", 2 assert_select doc.root, "a.popup", 2 do assert_select "[href=?]", /.*#{identifier_url}.*/ # Href property for the 2 includes the given url end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rrssb-rails-0.0.1 | test/helpers/buttons_helper_test.rb |