Sha256: f0e2ecc7234446c4009f7ae572c8b44f3c5e6242b505819b5bc7bd9af98a21aa
Contents?: true
Size: 790 Bytes
Versions: 2
Compression:
Stored size: 790 Bytes
Contents
describe("Zest.Telephony.Models.Transfer", function() { describe("#selectedAgentDisplayText", function() { describe("when agent is selected", function() { it("displays the agent's display name", function() { var agent = new Zest.Telephony.Models.Agent({ name: "Bruce", csr_type: "A", phone_ext: "14" }); var transfer = new Zest.Telephony.Models.Transfer({selectedAgent: agent}); expect(transfer.selectedAgentDisplayText()).toBe("A Bruce x14"); }); }) describe("when agent is not selected", function() { it("displays an empty string", function() { var transfer = new Zest.Telephony.Models.Transfer(); expect(transfer.selectedAgentDisplayText()).toBe(""); }) }) }) });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
telephony-1.0.4 | spec/javascripts/telephony/models/transfer_spec.js |
telephony-1.0.3 | spec/javascripts/telephony/models/transfer_spec.js |