Sha256: a7dd52c3da71b405f8793f0fa278f203b3cadde916a7f79231490003eba0c66c
Contents?: true
Size: 631 Bytes
Versions: 5
Compression:
Stored size: 631 Bytes
Contents
require "helper" module Dovico describe Dovico::Task do let(:task_api_hash) do { "ItemID": "123", "AssignmentID": "E456", "Name": "Dovico API Client", "StartDate": "2017-01-01", "FinishDate": "2017-12-31", }.stringify_keys end describe ".parse" do it "parses the API hash" do task = Dovico::Task.parse(task_api_hash) expect(task).to be_an(Dovico::Task) expect(task.id).to eq('123') expect(task.assignement_id).to eq('E456') expect(task.name).to eq('Dovico API Client') end end end end
Version data entries
5 entries across 5 versions & 1 rubygems