Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spec/ghe_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

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

assert_requested(:post, /#{MOCK_AUTHZ_GITHUB_URL}authorizations/)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/gist_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

it "should return false if legacy_private_gister?" do
Expand All @@ -12,7 +12,7 @@

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

it "should return true by default" do
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
end

require 'webmock/rspec'
require_relative '../lib/gist'
require 'gist'