Skip to content

Commit 06b4576

Browse files
committed
Merge pull request #188 from jasonkarns/ruby-18
Ruby 1.8
2 parents fa75085 + 57a5812 commit 06b4576

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
end
1717

1818
require 'webmock/rspec'
19-
require_relative '../lib/gist'
19+
require 'gist'

0 commit comments

Comments
 (0)