Sha256: 27e42a572946705ce7f57620324ce3c61c4addc5613d0f9436db2377ad7f71e8
Contents?: true
Size: 601 Bytes
Versions: 4
Compression:
Stored size: 601 Bytes
Contents
#encoding: utf-8 require 'spec_helper' describe HH::API::Statistic do let(:client) { HH::Client.new } describe "#statistic" do before do stub_get("statistic").to_return(body: fixture("statistic.json"), headers: {content_type: "application/json; charset=utf-8"}) end it "requests the correct resource" do client.statistic expect(a_get("statistic")).to have_been_made end it "returns the requested statistic list" do statistic = client.statistic expect(statistic).to be_an Hash expect(statistic[:invitations]) == 378520 end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hh-0.0.7 | spec/hh/api/statistic_spec.rb |
hh-0.0.6 | spec/hh/api/statistic_spec.rb |
hh-0.0.5 | spec/hh/api/statistic_spec.rb |
hh-0.0.4 | spec/hh/api/statistic_spec.rb |