features/begin.feature in begin-1.0.1 vs features/begin.feature in begin-1.1.0
- old
+ new
@@ -13,8 +13,20 @@
And the file "mypackage/.travis.yml" should contain "2.0.0"
And the file "mypackage/Gemfile" should contain "2.0.0"
And the file "mypackage/README.md" should contain "Mypackage Documentation"
And the file "mypackage/README.md" should not contain "Build Status"
-Scenario: Create package with readme icons
+ Scenario: Create a package with a malformed name
+ Given I run `bundle exec begin "mY aWesome Work"`
+ Then a directory named "mY aWesome Work" should not exist
+ And a directory named "my_awesome_work" should exist
+ And the file "my_awesome_work/.ruby-gemset" should contain "my_awesome_work"
+
+ Scenario: Create a package with a dashy name
+ Given I run `bundle exec begin "mY-aWesome-Work"`
+ Then a directory named "mY-aWesome-Work" should not exist
+ And a directory named "my_awesome_work" should exist
+ And the file "my_awesome_work/.ruby-gemset" should contain "my_awesome_work"
+
+ Scenario: Create package with readme icons
Given I run `bundle exec begin mypackage --github_user=myuser`
And the file "mypackage/README.md" should contain "Build Status"