Sha256: 183d521dd0c2a2ac901d0742f569ee6d50ab9bd0970c2dd8e08cbb8903b0d707

Contents?: true

Size: 457 Bytes

Versions: 1

Compression:

Stored size: 457 Bytes

Contents

require File.join(File.dirname(__FILE__), '../spec_helper')
require example('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

1 entries across 1 versions & 1 rubygems

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