Sha256: b2d52d730b4d224628d4406701e61a4eef05366022dc503b491d0ff0edf8162f
Contents?: true
Size: 823 Bytes
Versions: 3
Compression:
Stored size: 823 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' require 'mofo/hcard' context "Multiple attributes within a container" do setup do $hcards ||= HCard.find(:all => fixture(:hresume)) $included ||= $hcards.first $including ||= $hcards[1] end specify "should be referenceable by a microformat using the include pattern" do %w(fn n).each do |att| $including.send(att).should.equal $included.send(att) end end end context "A single attribute" do setup do $horsed ||= HCard.find(:first => fixture(:include_pattern_single_attribute)) end specify "should be referenceable by a microformat using the include pattern" do $horsed.logo.should.not.be.nil $horsed.logo.should.equal Hpricot(open fixture(:include_pattern_single_attribute)).at("#logo").attributes['src'] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mofo-0.2.2 | test/include_pattern_test.rb |
mofo-0.2.1 | test/include_pattern_test.rb |
mofo-0.2 | test/include_pattern_test.rb |