Permalink
Browse files

Add acceptance spec for github installation option

  • Loading branch information...
1 parent 4468c20 commit 8adce7a8e9623fe9c60b277a5e12be0f43ad2800 @chrismcg chrismcg committed Jul 3, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 features/localeapp_binary.feature
@@ -50,6 +50,25 @@ Feature: localeapp executable
And a file named ".localeapp/config.rb" should exist
And the exit status should be 0
+ Scenario: Running github install
+ In order to configure my public github project and check my api key is correct
+ When I have a valid project on localeapp.com with api key "MYAPIKEY"
+ And I run `localeapp install --github MYAPIKEY`
+ Then the output should contain:
+ """
+ Localeapp Install
+
+ Checking API key: MYAPIKEY
+ Success!
+ Project: Test Project
+ Default Locale: en (English)
+ """
+ And help should not be displayed
+ And a file named ".localeapp/config.rb" should exist
+ And a file named ".gitignore" should exist
+ And a file named "README.md" should exist
+ And the exit status should be 0
+
Scenario: Running install with bad api key
In order to configure my project and check my api key is correct

0 comments on commit 8adce7a

Please sign in to comment.