Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
j_platform / spec / models / client_spec.rb
Size: Mime:
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