Sha256: 74e97d897aa7607c9c3c6483a837253c8d90064cff34a0b5a63153e952d19796
Contents?: true
Size: 891 Bytes
Versions: 5
Compression:
Stored size: 891 Bytes
Contents
# -*- indent-tabs-mode: nil; fill-column: 110 -*- require 'rspec' require "spec_helper" require 'chef_fixie' require 'chef_fixie/config' RSpec.describe ChefFixie::Sql::Groups, "Group access" do let (:test_org_name) { "ponyville"} let (:orgs) { ChefFixie::Sql::Orgs.new } let (:users) { ChefFixie::Sql::Users.new } let (:test_org) { orgs[test_org_name] } # TODO this should use a freshly created object and purge it afterwords. # But we need to write the create object feature still context "Groups" do let (:testgroup) { test_org.groups['admins'] } let (:adminuser) { users['rainbowdash'] } let (:notadminuser) { users['mary'] } it "Members are part of the group" do expect(testgroup.member?(adminuser)).to be true end it "Members are not part of the group" do expect(testgroup.member?(notadminuser)).to be false end end end
Version data entries
5 entries across 5 versions & 1 rubygems