Sha256: f17be1bdf3eaaea6ef2fca0c03599bc56e61a106fee7b20a3b2c96222f62df43

Contents?: true

Size: 1.1 KB

Versions: 6

Compression:

Stored size: 1.1 KB

Contents

Feature: Bootstrap a new command-line app using RSpec instead of Test::Unit
  As an awesome developer who wants to make a command-line app
  I should be able to use methadone to bootstrap it
  And get support for RSpec instead of Test::Unit

  Background:
    Given the directory "tmp/newgem" does not exist

  Scenario: Bootstrap a new app from scratch
    When I successfully run `methadone --rspec tmp/newgem`
    Then the following directories should exist:
      |tmp/newgem/spec                      |
    And the following directories should not exist:
      |tmp/newgem/test                      |
    And the following files should exist:
      |tmp/newgem/spec/something_spec.rb                 |
    And the file "tmp/newgem/newgem.gemspec" should match /add_development_dependency\('rspec'/
    When I cd to "tmp/newgem"
    And I successfully run `rake -T -I../../lib`
    Then the output should match /rake spec/
    And the output should not match /rake test/
    When I run `rake spec -I../../lib`
    Then the exit status should be 0
    And the output should contain:
    """
    1 example, 0 failures
    """

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
methadone-1.9.5 features/rspec_support.feature
methadone-1.9.4 features/rspec_support.feature
methadone-1.9.3 features/rspec_support.feature
methadone-1.9.2 features/rspec_support.feature
methadone-rehab-1.9.2 features/rspec_support.feature
methadone-1.9.1 features/rspec_support.feature