Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ready for 0.4.3 release

  • Loading branch information...
commit ee353ceb4bf00e5b15e21187ac6df78781bc96f0 1 parent 3f1f724
@drnic drnic authored
Showing with 32 additions and 1 deletion.
  1. +5 −0 History.txt
  2. +1 −1  Rakefile
  3. +26 −0 spec/commands/command_config_spec.rb
View
5 History.txt
@@ -1,3 +1,8 @@
+== 0.4.3
+
+Updated command:
+ * gh config - asks for user/token if not provided
+
== 0.4.2
New protocols supported: http, git+ssh, git+ssh://git@
View
2  Rakefile
@@ -4,7 +4,7 @@ require 'rake'
begin
require 'echoe'
- Echoe.new('github', '0.4.2') do |p|
+ Echoe.new('github', '0.4.3') do |p|
p.rubyforge_name = 'github'
p.summary = "The official `github` command line helper for simplifying your GitHub experience."
p.description = "The official `github` command line helper for simplifying your GitHub experience."
View
26 spec/commands/command_config_spec.rb
@@ -0,0 +1,26 @@
+require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require File.dirname(__FILE__) + '/command_helper'
+
+describe "github config" do
+ include CommandHelper
+
+ specify "config takes [user token] if provided" do
+ running :config, "drnic", "TOKEN" do
+ @command.should_receive(:git, "--global github.user drnic")
+ @command.should_receive(:git, "--global github.token TOKEN")
+ stdout.should == "Configured with github.user drnic\n"
+ end
+ end
+ specify "config should ask for user + token if not provided" do
+ running :config do
+ @command.should_receive()
+ end
+ end
+ specify "test-config commands should request github config if not available" do
+ running :fork do
+ setup_github_token :user => nil, :token => nil
+ @command.should_receive(:config)
+ end
+ end
+
+end
Please sign in to comment.
Something went wrong with that request. Please try again.