Sha256: 620b39f279dac5d506062cbd9d04551ade1b90bd604a773f284d31cb2ac15a1d

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

Feature: Generated RubyGems have various rake tasks to aide their development
  In order to maintain and release generated RubyGems
  As a RubyGem developer
  I want rake tasks to perform routine maintenance and deployment tasks

  Scenario: Generate a gemspec that can build the RubyGem
    Given default env variables setup for name and email
    And an existing newgem scaffold [called "my_project"]
    And "pkg" folder is deleted
    When I invoke task "rake gemspec"
    Then file "my_project.gemspec" is created
    And gemspec builds the RubyGem successfully
    Then I should see
      """
      Successfully built RubyGem
      """

  Scenario: Generate RubyGem
    Given default env variables setup for name and email
    And an existing newgem scaffold [called "my_project"]
    And "pkg" folder is deleted
    When I invoke task "rake gem"
    Then folder "pkg" is created
    And file with name matching "pkg/my_project-0.0.1.gem" is created
    And gem spec key "rdoc_options" contains /(--mainREADME.rdoc|\[\"--main\", \"README.rdoc\"\])/
    And gem spec key "dependencies" contains /newgem \(>= [\d.]+, development\)/

  Scenario: Hoe does not bitch about README.txt being missing
    Given an existing newgem scaffold [called "my_project"] that has "README.rdoc" not "README.txt"
    When I invoke task "rake -T"
    Then I should not see
      """
      README.txt is missing
      """
  

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
newgem-1.5.3 features/rubygem_tasks.feature