forked from octokit/octokit.rb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
188 additions
and
5 deletions.
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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ require 'octokit/version' | |
|
||
Gem::Specification.new do |spec| | ||
spec.add_development_dependency 'bundler', '~> 1.0' | ||
spec.add_dependency 'sawyer', '~> 0.0.8' | ||
spec.add_dependency 'sawyer', '~> 0.0.9' | ||
spec.authors = ["Wynn Netherland", "Erik Michaels-Ober", "Clint Shryock"] | ||
spec.description = %q{Simple wrapper for the GitHub v3 API} | ||
spec.email = ['[email protected]', '[email protected]', '[email protected]'] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,25 @@ | ||
require File.expand_path('../../../spec_helper.rb', __FILE__) | ||
|
||
describe Octokit::Client::Say do | ||
before do | ||
@client = Octokit::Client.new | ||
end | ||
|
||
describe ".say" do | ||
it "returns an ASCII octocat" do | ||
VCR.use_cassette('say', :match_requests_on => [:uri, :query]) do | ||
text = @client.say | ||
puts text.inspect | ||
text.must_match /logically awesome/ | ||
end | ||
end | ||
|
||
it "returns an ASCII octocat with custom text" do | ||
VCR.use_cassette('say', :match_requests_on => [:uri, :query]) do | ||
text = @client.say "There is no need to be upset" | ||
text.must_match /upset/ | ||
end | ||
end | ||
end | ||
|
||
end |
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