Fix spec
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
Release Drafter / Update release notes draft (pull_request) Successful in 3s Details

The test env has Mastodon enabled now
This commit is contained in:
Râu Cao 2024-04-04 17:22:57 +03:00
parent 8f600f44bd
commit 78aff3d796
Signed by: raucao
GPG Key ID: 37036C356E56CC51
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,10 @@ RSpec.describe User, type: :model do
let(:user) { build :user, cn: "jimmy", ou: "kosmos.org" }
context "Mastodon service not configured" do
before do
Setting.mastodon_enabled = false
end
it "returns nil" do
expect(user.mastodon_address).to be_nil
end