A platform for community discussion. Free, open, simple.
use different example domain
Andrew Schleifer2f7a8ed86c51
diff --git a/spec/models/post_spec.rb b/spec/models/post_spec.rbindex 13ffb2532ed..8f91e618318 100644--- a/spec/models/post_spec.rb+++ b/spec/models/post_spec.rb@@ -942,12 +942,12 @@ describe Post doenddescribe "has_host_spam" do- let(:raw) { "hello from my site http://www.foobar.com http://#{GlobalSetting.hostname} http://#{RailsMultisite::ConnectionManagement.current_hostname}" }+ let(:raw) { "hello from my site http://www.example.net http://#{GlobalSetting.hostname} http://#{RailsMultisite::ConnectionManagement.current_hostname}" }it "correctly detects host spam" dopost = Fabricate(:post, raw: raw)- expect(post.total_hosts_usage).to eq("www.foobar.com" => 1)+ expect(post.total_hosts_usage).to eq("www.example.net" => 1)post.acting_user.trust_level = 0expect(post.has_host_spam?).to eq(false)@@ -956,7 +956,7 @@ describe Post doexpect(post.has_host_spam?).to eq(true)- SiteSetting.white_listed_spam_host_domains = "bla.com|boo.com | foobar.com "+ SiteSetting.white_listed_spam_host_domains = "bla.com|boo.com | example.net "expect(post.has_host_spam?).to eq(false)end