Sha256: a5757cdd18e93285f7c4e8617c05b0018ea0247aa204e09bbe3cdc0211588214

Contents?: true

Size: 558 Bytes

Versions: 8

Compression:

Stored size: 558 Bytes

Contents

require 'spec/spec_helper'
require '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

8 entries across 8 versions & 3 rubygems

Version Path
yob-roxml-3.1.6 spec/examples/post_spec.rb
roxml-3.1.5 spec/examples/post_spec.rb
roxml-3.1.4 spec/examples/post_spec.rb
roxml-3.1.3 spec/examples/post_spec.rb
roxml-3.1.2 spec/examples/post_spec.rb
roxml-3.1.1 spec/examples/post_spec.rb
roxml-3.1.0 spec/examples/post_spec.rb
ROXML-3.0.0 spec/examples/post_spec.rb