Sha256: 56db946232ff0b8a55a5c68574248db7af429e4e0de4be87ac6dc1866f7bd3a8

Contents?: true

Size: 597 Bytes

Versions: 4

Compression:

Stored size: 597 Bytes

Contents

require 'rspec'
require "spec_helper"
require 'fixie'
require 'fixie/config'

RSpec.describe Fixie::Sql::Orgs, "Organizations access" do
  let (:test_org_name) { "ponyville" }
  let (:orgs) { Fixie::Sql::Orgs.new }
  let (:test_org) { orgs[test_org_name]}

  context "Basic functionality of org accessor" do

    it "Org has a name and id" do
      expect(test_org.name).to eq(test_org_name)
      expect(test_org.id).not_to be_nil
    end

    it "Org has a global admins group" do
      expect(test_org.global_admins.name).to eq(test_org_name + "_global_admins")      
    end
    
  end


end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chef_fixie-0.3.0 spec/chef_fixie/assoc_invite_spec.rb~
chef_fixie-0.2.1 spec/chef_fixie/assoc_invite_spec.rb~
chef_fixie-0.2.0 spec/chef_fixie/assoc_invite_spec.rb~
chef_fixie-0.1.0 spec/chef_fixie/assoc_invite_spec.rb~