Sha256: fea4c137b41607193ed267b6643447947ada193910cf69388ac5e3f25c23cc7c

Contents?: true

Size: 721 Bytes

Versions: 1

Compression:

Stored size: 721 Bytes

Contents

require "spec_helper"

describe Gratitude::Client do

  describe "default attributes" do
    it "includes httparty methods" do
      expect(Gratitude::Client).to include(HTTParty)
    end

    it "includes tips methods" do
      expect(Gratitude::Client).to include(Gratitude::Client::Tips)
    end
  end

  describe "initialization" do
    let(:username) { "JohnKellyFerguson"}
    let(:api_key) { "this_is_an_api_key"}
    let(:client) do
      Gratitude::Client.new(:username => username, :api_key => api_key)
    end

    it "assigns the correct username" do
      expect(client.username).to eq(username)
    end

    it "assigns the correct api key" do
      expect(client.api_key).to eq(api_key)
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gratitude-0.0.10 spec/gratitude/client_spec.rb