Sha256: 19a2ee581fd213f0e82b38e81956feba49b04a76e8ba327eca317ec8208c4b96

Contents?: true

Size: 605 Bytes

Versions: 5

Compression:

Stored size: 605 Bytes

Contents

require 'rspec'
require "spec_helper"
require 'chef_fixie'
require 'chef_fixie/config'

RSpec.describe ChefFixie::Sql::Orgs, "Organizations access" do
  let (:test_org_name) { "ponyville" }
  let (:orgs) { ChefFixie::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

5 entries across 5 versions & 1 rubygems

Version Path
chef_fixie-0.4.0 spec/chef_fixie/org_spec.rb
chef_fixie-0.3.0 spec/chef_fixie/org_spec.rb
chef_fixie-0.2.1 spec/chef_fixie/org_spec.rb
chef_fixie-0.2.0 spec/chef_fixie/org_spec.rb
chef_fixie-0.1.0 spec/chef_fixie/org_spec.rb