Sha256: 636166ff47cee9666fa2b1b59bd6f7d61c6e8f76e4ed2e18c25a25764ea42fd1

Contents?: true

Size: 1.36 KB

Versions: 3

Compression:

Stored size: 1.36 KB

Contents

Feature: Creation of a Darwing Core Archive
  In order to start working with Darwin Core Archive file
  A user should be able initiate dwc object from a file
  So I want to implement handling of dwc object creation

  Scenario: Creating Darwin Core Archive object
    Given path to a dwc file "data.tar.gz"
    When I create a new DarwinCore::Archive instance
    Then I should find that the archive is valid 
    Then I should see what files the archive has

    When I delete expanded files
    Then they should disappear

  Scenario: Instantiating DarwinCore with tar.gz file
    Given path to a dwc file "data.tar.gz"
    When I create a new DarwinCore instance 
    Then instance should have a valid archive
    And instance should have a core
    When I check core data
    Then I should find core.properties
    And core.file_path
    And core.id
    And core.fields
    Then DarwinCore instance should have an extensions array
    And every extension in array should be an instance of DarwinCore::Extension
    And extension should have properties, data, file_path, coreid, fields 
    Then DarwinCore instance should have dwc.metadata object
    And I should find id, title, creators, metadata provider

  Scenario: Instantiating DawinCore with zip file
    Given path to a dwc file "data.zip"
    When I create a new DarwinCore instance 
    Then instance should have a valid archive

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dwc-archive-0.1.4 features/dwc-archive.feature
dwc-archive-0.1.3 features/dwc-archive.feature
dwc-archive-0.1.2 features/dwc-archive.feature