Sha256: 26890e3ccc699595afbd524e32a5fd54bbc4b9e88610911888fd85d4e287945c
Contents?: true
Size: 584 Bytes
Versions: 2
Compression:
Stored size: 584 Bytes
Contents
require_relative './../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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
representable-0.0.1.alpha1 | spec/examples/post_spec.rb |
roxml-3.1.6 | spec/examples/post_spec.rb |