about summary refs log tree commit diff
path: root/spec/models
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2017-09-17 12:29:43 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-09-17 05:29:43 +0200
commit198a9a4fa42b880cba182d19dcc8edad360a4fbe (patch)
tree3760cfad361381a2270e8b90116557be545b998f /spec/models
parentec36df97c4ea3da4bc177a96050c54cf8f35ba25 (diff)
Remove local_only scope in Status (#4977)
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/status_spec.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/spec/models/status_spec.rb b/spec/models/status_spec.rb
index 484effd5e..f7ee0a609 100644
--- a/spec/models/status_spec.rb
+++ b/spec/models/status_spec.rb
@@ -173,19 +173,6 @@ RSpec.describe Status, type: :model do
     end
   end
 
-  describe '.local_only' do
-    it 'returns only statuses from local accounts' do
-      local_account = Fabricate(:account, domain: nil)
-      remote_account = Fabricate(:account, domain: 'test.com')
-      local_status = Fabricate(:status, account: local_account)
-      remote_status = Fabricate(:status, account: remote_account)
-
-      results = described_class.local_only
-      expect(results).to include(local_status)
-      expect(results).not_to include(remote_status)
-    end
-  end
-
   describe '.as_home_timeline' do
     let(:account) { Fabricate(:account) }
     let(:followed) { Fabricate(:account) }