Sha256: 6f16dfd5d3160853667bea6f29468ef14460daab8ba0036c833d26feb20c2410

Contents?: true

Size: 605 Bytes

Versions: 7

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

7 entries across 7 versions & 2 rubygems

Version Path
chef_fixie-1.0.8 spec/chef_fixie/org_spec.rb
chef_fixie-1.0.7 spec/chef_fixie/org_spec.rb
chef_fixie-1.0.3 spec/chef_fixie/org_spec.rb
chef_fixie-1.0.2 spec/chef_fixie/org_spec.rb
chef_fixie_shahid-0.5.2 spec/chef_fixie/org_spec.rb
chef_fixie-0.5.1 spec/chef_fixie/org_spec.rb
chef_fixie-0.5.0 spec/chef_fixie/org_spec.rb