Sha256: eb23c458ec172f37e1d980b1b3e73312ba0f59de82a050b83ba0a0377a1b2691
Contents?: true
Size: 600 Bytes
Versions: 3
Compression:
Stored size: 600 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.created_at.should be_an_instance_of(DateTime) } end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
Empact-roxml-2.5.2 | spec/examples/post_spec.rb |
Empact-roxml-2.5.3 | spec/examples/post_spec.rb |
doxo-roxml-2.5.3 | spec/examples/post_spec.rb |