Sha256: 81475480a26d6e76e929c2f825664754225396d2c45f0aad1b9d58f886d37c7f

Contents?: true

Size: 566 Bytes

Versions: 11

Compression:

Stored size: 566 Bytes

Contents

require 'helper'

describe Octokit::Client::Say do
  before do
    Octokit.reset!
    @client = oauth_client
  end

  describe ".say", :vcr do
    it "returns an ASCII octocat" do
      text = @client.say
      expect(text).to match /MMMMMMMMMMMMMMMMMMMMM/
      assert_requested :get, github_url("/octocat")
    end

    it "returns an ASCII octocat with custom text" do
      text = @client.say "There is no need to be upset"
      expect(text).to match /upset/
      assert_requested :get, github_url("/octocat?s=There+is+no+need+to+be+upset")
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
octokit-2.3.0 spec/octokit/client/say_spec.rb
octokit-2.2.0 spec/octokit/client/say_spec.rb
octokit-2.1.2 spec/octokit/client/say_spec.rb
octokit-2.1.1 spec/octokit/client/say_spec.rb
octokit-2.1.0 spec/octokit/client/say_spec.rb
octokit-2.0.0 spec/octokit/client/say_spec.rb
octokit-2.0.0.rc4 spec/octokit/client/say_spec.rb
octokit-2.0.0.rc3 spec/octokit/client/say_spec.rb
octokit-2.0.0.rc2 spec/octokit/client/say_spec.rb
octokit-2.0.0.rc1 spec/octokit/client/say_spec.rb
octokit-2.0.0.pre spec/octokit/client/say_spec.rb