Sha256: ec5708b2518555d3267f53872a92a797835dd4b038dcb66023a35c365ddec215
Contents?: true
Size: 658 Bytes
Versions: 64
Compression:
Stored size: 658 Bytes
Contents
require "spec_helper" describe Brightbox::CollaboratingAccount do include_context "collaborating accounts" let(:account) { Brightbox::CollaboratingAccount.new(initial_model) } describe "#name" do context "when initialised with an account" do let(:initial_model) { owned_account } it "returns account's name" do expect(account.name).to eql("Owned account name") end end context "when initialised with a collaboration" do let(:initial_model) { active_collaboration } it "returns nested account's name" do expect(account.name).to eql("Active collaboration name") end end end end
Version data entries
64 entries across 64 versions & 1 rubygems