-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for
git config --global gist.private yes
I don't want gisters to accidentally create public gists of stuff that they thought would be private.
- Loading branch information
1 parent
63300c1
commit 7be4a12
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
describe Gist do | ||
|
||
describe "should_be_public?" do | ||
it "should return false if -p is specified" do | ||
Gist.should_be_public?(private: true).should be_false | ||
end | ||
|
||
it "should return false if legacy_private_gister?" do | ||
Gist.should_receive(:legacy_private_gister?).and_return(true) | ||
Gist.should_be_public?.should be_false | ||
end | ||
|
||
it "should return true by default" do | ||
Gist.should_be_public?.should be_true | ||
end | ||
end | ||
|
||
end |