Sha256: 5b6d77b0a3225962651f41ee4001581af1d545748d532a99da71a36b3256a662
Contents?: true
Size: 664 Bytes
Versions: 1
Compression:
Stored size: 664 Bytes
Contents
require 'spec_helper' describe Bpl::InstitutionManagement::UserInstitutions do subject do User.create!(email: 'fred@example.com', password: 'password') end it "should have admin?" do subject.should_not be_admin end it "should have institutions" do subject.institutions.should == [] subject.institutions << Institution.create!(name: 'librarian') subject.institutions.first.name.should == 'librarian' end it "should have groups" do subject.institutions.should == [] subject.institutions << Institution.create!(name: 'librarian') subject.save! subject.groups.should include('registered', 'librarian') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bpl-institution-management-0.0.2 | spec/lib/user_institutions_spec.rb |