Skip to content

Commit 57a5812

Browse files
committed
1.8 hash syntax
1 parent fb5dcde commit 57a5812

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/ghe_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
it "uses them" do
6565
$stdin = StringIO.new "#{MOCK_USER}_wrong\n#{MOCK_PASSWORD}_wrong\n"
66-
Gist.login! username: MOCK_USER, password: MOCK_PASSWORD
66+
Gist.login! :username => MOCK_USER, :password => MOCK_PASSWORD
6767

6868
assert_requested(:post, /#{MOCK_AUTHZ_GITHUB_URL}authorizations/)
6969
end

spec/gist_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
describe "should_be_public?" do
44
it "should return false if -p is specified" do
5-
Gist.should_be_public?(private: true).should be_falsy
5+
Gist.should_be_public?(:private => true).should be_falsy
66
end
77

88
it "should return false if legacy_private_gister?" do
@@ -12,7 +12,7 @@
1212

1313
it "should return true if --no-private is specified" do
1414
Gist.stub(:legacy_private_gister?).and_return(true)
15-
Gist.should_be_public?(private: false).should be_truthy
15+
Gist.should_be_public?(:private => false).should be_truthy
1616
end
1717

1818
it "should return true by default" do

0 commit comments

Comments
 (0)