Sha256: dc0cecb48f6b27d7475a842cbe9c018a5b32012fe992c5355089471884e4b0ba
Contents?: true
Size: 831 Bytes
Versions: 4
Compression:
Stored size: 831 Bytes
Contents
require 'rspec' require "spec_helper" require 'fixie' require 'fixie/config' RSpec.describe Fixie::Sql::Groups, "Group access" do let (:test_org_name) { "ponyville"} let (:orgs) { Fixie::Sql::Orgs.new } let (:users) { Fixie::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
4 entries across 4 versions & 1 rubygems