Sha256: ee43630a06434a5a868e042b11bcce052230737ce258091728e22c2c005d6d4c

Contents?: true

Size: 418 Bytes

Versions: 6

Compression:

Stored size: 418 Bytes

Contents

RSpec.describe Dryad::Core::Portal do
  it "creates with default options" do
    portal = Dryad::Core::Portal.new
    expect(portal.id).not_to be(nil)
    expect(portal.non_certifications).to eq([])
  end

  it "creates portals with different id" do
    portals = Array.new(100) { Dryad::Core::Portal.new }
    ids_set = portals.map{|portal| portal.id }.to_set
    expect(ids_set.count).to eq(portals.count)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dryad-0.2.5 dryad-core/spec/dryad/core/portal_spec.rb
dryad-0.2.3 dryad-core/spec/dryad/core/portal_spec.rb
dryad-0.2.1 dryad-core/spec/dryad/core/portal_spec.rb
dryad-0.2.0 dryad-core/spec/dryad/core/portal_spec.rb
dryad-0.1.1 dryad-core/spec/dryad/core/portal_spec.rb
dryad-0.1.0 dryad-core/spec/dryad/core/portal_spec.rb