Sha256: f67b3bfb9609f5ac499ec500eebdfc97a42143cd61c5803635b0f0de68083aa8
Contents?: true
Size: 616 Bytes
Versions: 1
Compression:
Stored size: 616 Bytes
Contents
require "spec_helper" module Bickle describe BuildRepository do it "returns builds" do http_client = mock("HttpClient") http_client.should_receive(:get) { "[{\"id\":1}, {\"id\":2}]"} builds = BuildRepository.new(Repository.new("rails"), http_client) builds.fetch.length.should equal 2 end it "returns limited amount of results" do http_client = mock("HttpClient") http_client.should_receive(:get) { "[{\"id\":1}, {\"id\":2}]"} builds = BuildRepository.new(Repository.new("rails"), http_client) builds.fetch(1).length.should equal 1 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bickle-0.0.1 | spec/build_repository_spec.rb |