Sha256: 820f8c762ff409f8c308a0928285501cd0a7409f685367e3109a20d6915a672f
Contents?: true
Size: 653 Bytes
Versions: 4
Compression:
Stored size: 653 Bytes
Contents
#encoding: utf-8 require 'spec_helper' describe HH::API::Schedule do let(:client) { HH::Client.new } describe "#schedule" do before do stub_get("schedule").to_return(body: fixture("schedule.json"), headers: {content_type: "application/json; charset=utf-8"}) end it "requests the correct resource" do client.schedule expect(a_get("schedule")).to have_been_made end it "returns the requested schedule list" do schedule = client.schedule expect(schedule).to be_an Array expect(schedule.first).to be_an Hash expect(schedule.first[:name]).to eq "Полный день" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hh-0.0.7 | spec/hh/api/schedule_spec.rb |
hh-0.0.6 | spec/hh/api/schedule_spec.rb |
hh-0.0.5 | spec/hh/api/schedule_spec.rb |
hh-0.0.4 | spec/hh/api/schedule_spec.rb |