Sha256: 7f32ca4ee0369e661adaf29129cdf5c4b1d960cc52aba270089d3c60717769b9
Contents?: true
Size: 570 Bytes
Versions: 5
Compression:
Stored size: 570 Bytes
Contents
require 'spec_helper' require_relative './../../examples/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.created_at.should be_an_instance_of(DateTime) } end end
Version data entries
5 entries across 5 versions & 1 rubygems