forked from rubysherpas/forem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration_spec.rb
54 lines (43 loc) · 1.3 KB
/
configuration_spec.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
require 'spec_helper'
describe Forem do
describe ".default_gravatar" do
it "can be set and retrieved" do
Forem.default_gravatar = "foo"
Forem.default_gravatar.should eq("foo")
Forem.default_gravatar = nil
Forem.default_gravatar.should be_nil
end
end
describe ".default_gravatar_image" do
it "can be set and retrieved" do
Forem.default_gravatar_image = "foo"
Forem.default_gravatar_image.should eq("foo")
Forem.default_gravatar_image = nil
Forem.default_gravatar_image.should be_nil
end
end
describe ".avatar_user_method" do
it "can be set and retrieved" do
Forem.avatar_user_method = "foo"
Forem.avatar_user_method.should eq("foo")
Forem.avatar_user_method = nil
Forem.avatar_user_method.should be_nil
end
end
describe ".email_from_address" do
it "can be set and retrieved" do
Forem.email_from_address = "foo"
Forem.email_from_address.should eq("foo")
Forem.email_from_address = nil
Forem.email_from_address.should be_nil
end
end
describe ".sign_in_path" do
it "can be set and retrieved" do
Forem.sign_in_path = "users/sign_in"
Forem.sign_in_path.should eq("users/sign_in")
Forem.sign_in_path = nil
Forem.sign_in_path.should be_nil
end
end
end