Repository URL to install this package:
|
Version:
1.44.1 ▾
|
require 'spec_helper'
describe JPlatform::Client do
let(:client) { JPlatform::Client.new(id: 1, name: "test", status: "active") }
describe "#==" do
it "returns true when objects IDs are the same" do
other = JPlatform::Client.new(id: 1, name: "bar")
expect(client == other).to be_true
end
it "returns false when objects IDs are different" do
other = JPlatform::Client.new(id: 2)
expect(client == other).to be_false
end
end
describe "to_s" do
it "returns its name" do
expect(JPlatform::Client.new(id: 1, name: "test").to_s).to eq("test")
end
end
end