about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-03 17:11:54 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-03 17:12:13 +0200
commit9d59d7b463e7f31ceedf27775a7ee3e8e071b4a1 (patch)
tree6623a9795e3b6fc755b11caa132211f56acfed32 /spec
parenta488b05726b2e93b5f66e93ef700a6bc32a3a029 (diff)
Adding a block model and filter mentions from blocked users (fix #60)
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/about_controller_spec.rb4
-rw-r--r--spec/fabricators/block_fabricator.rb3
-rw-r--r--spec/models/block_spec.rb5
3 files changed, 10 insertions, 2 deletions
diff --git a/spec/controllers/about_controller_spec.rb b/spec/controllers/about_controller_spec.rb
index 54b552b6f..4fb58637a 100644
--- a/spec/controllers/about_controller_spec.rb
+++ b/spec/controllers/about_controller_spec.rb
@@ -2,8 +2,8 @@ require 'rails_helper'
 
 RSpec.describe AboutController, type: :controller do
 
-  describe "GET #index" do
-    it "returns http success" do
+  describe 'GET #index' do
+    it 'returns http success' do
       get :index
       expect(response).to have_http_status(:success)
     end
diff --git a/spec/fabricators/block_fabricator.rb b/spec/fabricators/block_fabricator.rb
new file mode 100644
index 000000000..9a5a6808f
--- /dev/null
+++ b/spec/fabricators/block_fabricator.rb
@@ -0,0 +1,3 @@
+Fabricator(:block) do
+
+end
diff --git a/spec/models/block_spec.rb b/spec/models/block_spec.rb
new file mode 100644
index 000000000..6862de6fc
--- /dev/null
+++ b/spec/models/block_spec.rb
@@ -0,0 +1,5 @@
+require 'rails_helper'
+
+RSpec.describe Block, type: :model do
+
+end