Sha256: 5b0d6371b60261a266004cb833df19608d5620ed767db85a7d0e9790551bbef5

Contents?: true

Size: 436 Bytes

Versions: 5

Compression:

Stored size: 436 Bytes

Contents

require 'spec_helper'
require_relative './../../examples/dashed_elements'

describe GitHub::Commit do
  before do
    @commit = GitHub::Commit.from_xml(xml_for('dashed_elements'))
  end

  it "should extract committed date" do
    @commit.committed_date.should be_an_instance_of(Date)
  end

  it "should extract url" do
    @commit.url.should_not be_empty
  end

  it "should extract id" do
    @commit.id.should_not be_empty
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
roxml-3.3.1 spec/examples/dashed_elements_spec.rb
roxml-3.3.0 spec/examples/dashed_elements_spec.rb
roxml-3.2.2 spec/examples/dashed_elements_spec.rb
roxml-3.2.1 spec/examples/dashed_elements_spec.rb
roxml-3.2.0 spec/examples/dashed_elements_spec.rb