Sha256: b1750e73c12bf0f3f7f3e9a727da12ac0b8336a1c65e4d1f3b88bb2a457fb144

Contents?: true

Size: 556 Bytes

Versions: 5

Compression:

Stored size: 556 Bytes

Contents

require "spec_helper"

describe Rubolite::User do
  subject { Rubolite::User.new }

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

  context "permissions" do
    specify { expect(subject).to respond_to :permissions= }
    specify { expect(subject).to respond_to :permissions }
  end

  it "initializes with a name and permissions" do
    user = Rubolite::User.new("robert", "RW+")
    expect(user.name).to eq("robert")
    expect(user.permissions).to eq("RW+")
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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