Browse Source

Spec setting data protection officer status

pull/443/head
baarkerlounger 3 years ago
parent
commit
e6fc279a89
  1. 11
      spec/models/user_spec.rb

11
spec/models/user_spec.rb

@ -51,13 +51,18 @@ RSpec.describe User, type: :model do
expect(user.is_key_contact?).to be false
end
it "can be set to key contact" do
expect { user.is_key_contact! }
.to change { user.reload.is_key_contact? }.from(false).to(true)
end
it "is not a data protection officer by default" do
expect(user.is_data_protection_officer?).to be false
end
it "can be set to key contact" do
expect { user.is_key_contact! }
.to change { user.reload.is_key_contact? }.from(false).to(true)
it "can be set to data protection officer" do
expect { user.is_data_protection_officer! }
.to change { user.reload.is_data_protection_officer? }.from(false).to(true)
end
end

Loading…
Cancel
Save