require 'spec_helper'

describe Client do

  # TODO: this entire class needs a test double for Resting 
  # which can receive messages
  it "has a valid mock" do
    client = double('Client')
  end
  pending "This test requires a Resting mock"

end

require 'spec_helper'

describe Client do

  it "should return all clients through cache" do
    clients = Client.all_with_cache
    clients.count.should eq 1
  end

  it "should return all clients as a hash" do
    clients_hash = Client.full_hash
    clients_hash.should be_a Hash
    clients_hash.should_not be_empty
    clients_hash.count.should eq 1
  end

end

Add unit tests for client
Add unit tests for client
