Sha256: b3c28456f19178682967ab9935691c1217bb42bc7cc4fdc9bf3bd0ac539e7cc1
Contents?: true
Size: 594 Bytes
Versions: 8
Compression:
Stored size: 594 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') require example('posts') describe Post do before do @posts = Posts.from_xml(xml_for('posts')).posts end it "should extract description" do @posts.each {|post| post.description.should_not be_empty } end it "should extract href" do @posts.each {|post| post.href.should_not be_empty } end it "should extract extended" do @posts.each {|post| post.extended.should_not be_empty } end it "should extract time" do @posts.each {|post| post.time.should be_an_instance_of(DateTime) } end end
Version data entries
8 entries across 8 versions & 2 rubygems