Fix spec
The test env has Mastodon enabled now
This commit is contained in:
parent
8f600f44bd
commit
78aff3d796
@ -16,6 +16,10 @@ RSpec.describe User, type: :model do
|
|||||||
let(:user) { build :user, cn: "jimmy", ou: "kosmos.org" }
|
let(:user) { build :user, cn: "jimmy", ou: "kosmos.org" }
|
||||||
|
|
||||||
context "Mastodon service not configured" do
|
context "Mastodon service not configured" do
|
||||||
|
before do
|
||||||
|
Setting.mastodon_enabled = false
|
||||||
|
end
|
||||||
|
|
||||||
it "returns nil" do
|
it "returns nil" do
|
||||||
expect(user.mastodon_address).to be_nil
|
expect(user.mastodon_address).to be_nil
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user