Sha256: dc88c9bf977caf2a7afa14ddc035a086acac0a0c49cdda8a071dd3c55336eb9e

Contents?: true

Size: 617 Bytes

Versions: 5

Compression:

Stored size: 617 Bytes

Contents

require "spec_helper"

describe Rubolite::Repo do
  subject { Rubolite::Repo.new }
  let(:admin) { Rubolite::Admin.new }

  context "names" do
    specify { expect(subject).to respond_to :name= }
    specify { expect(subject).to respond_to :name }

    it "initializes with a name" do
      repo = Rubolite::Repo.new("newname")
      expect(repo.name).to eq("newname")
    end
  end

  context "users" do
    let(:user) { Rubolite::User.new "robert", "RW+" }
    let(:repo) { Rubolite::Repo.new("newname") }

    it "adds a user" do
      repo.add_user(user)
      expect(repo.users).to include user
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubolite-0.0.6 spec/lib/rubolite/repo_spec.rb
rubolite-0.0.5 spec/lib/rubolite/repo_spec.rb
rubolite-0.0.4 spec/lib/rubolite/repo_spec.rb
rubolite-0.0.3 spec/lib/rubolite/repo_spec.rb
rubolite-0.0.2 spec/lib/rubolite/repo_spec.rb