Sha256: 13aa3a5b91e6986ec944d0652f2ec69997840ebc462eb4bef93dc2be2a0adb48

Contents?: true

Size: 817 Bytes

Versions: 3

Compression:

Stored size: 817 Bytes

Contents

Feature: Load data into a database table

  Background:
    Given a blogposts database table
    And a "source.csv" file with the following rows:
      | id | title                 | author          |
      | 1  | Pride and Prejudice   | Jane Austen     |
      | 2  | Treasure Island       | R L Stevenson   |
      | 3  | Steve Jobs            | Walter Isaacson |
      | 4  | The thank you economy | Gary Vaynerchuk |

    # @source = Itiel::Extracts::CSVFile.new('source.csv')
    And I create a Extractor::CSVFile object with "source.csv"
    # @destination  = Itiel::Load::DatabaseTable.new :test, "blogposts"
    And I create a Loader::DatabaseTable object for the "blogposts" table

  @database
  Scenario:
    When I load the source into the destination
    Then the "blogposts" table should have 4 records

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
itiel-0.1.2 features/load/database_table_loader.feature
itiel-0.1.1 features/load/database_table_loader.feature
itiel-0.1.0 features/load/database_table_loader.feature