Sha256: d87407f4e09adb8cc3b22466f2e34c9494e5c97c09b222aaa5bdf19587015fb2

Contents?: true

Size: 585 Bytes

Versions: 1

Compression:

Stored size: 585 Bytes

Contents

require File.join(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

1 entries across 1 versions & 1 rubygems

Version Path
Empact-roxml-2.4.2 spec/examples/post_spec.rb