Sha256: f29cbb9438bc554e7b3e9a276494023b61accfed49f67d44056a794b23535bfb
Contents?: true
Size: 638 Bytes
Versions: 3
Compression:
Stored size: 638 Bytes
Contents
#encoding: utf-8 require 'spec_helper' describe HH::API::Employer do let(:client) { HH::Client.new } describe "#employer" do before do stub_get("employer").to_return(body: fixture("employer.json"), headers: {content_type: "application/json; charset=utf-8"}) end it "requests the correct resource" do client.employer expect(a_get("employer")).to have_been_made end it "returns the requested metro list" do employer = client.employer expect(employer).to be_an Hash expect(employer[:name]).to eq "Национальный резервный банк, АКБ" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hh-0.0.7 | spec/hh/api/employer_spec.rb |
hh-0.0.6 | spec/hh/api/employer_spec.rb |
hh-0.0.5 | spec/hh/api/employer_spec.rb |