spec/localeapp/cli/install_spec.rb in localeapp-0.4.3 vs spec/localeapp/cli/install_spec.rb in localeapp-0.5.0

- old
+ new

@@ -59,6 +59,13 @@ @command.stub!(:write_configuration_file) File.should_receive(:directory?).and_return(true) @command.execute('API_KEY', @output) @output.string.should_not match(/Your translation data will be stored there./) end + + it "asks the github configuration to write itself" do + @command.stub!(:check_key).and_return([true, valid_project_data]) + @command.config_type = :github + @command.should_receive(:write_github_configuration_file).with('.localeapp/config.rb', valid_project_data) + @command.execute('API_KEY', @output) + end end