summaryrefslogtreecommitdiff
path: root/spec/models/user_status_spec.rb
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2019-02-28 19:57:34 +0100
committerToon Claes <toon@gitlab.com>2019-02-28 19:57:34 +0100
commit62d7990b9bb30cf33ed87017c5c633d1cccc75c2 (patch)
treec3e1b69c58a412ba1c6f50a0337a23d9f9d6e1a4 /spec/models/user_status_spec.rb
parentf6453eca992a9c142268e78ac782cef98110d183 (diff)
downloadgitlab-ce-tc-standard-gem.tar.gz
Ran standardrb --fix on the whole codebasetc-standard-gem
Inspired by https://twitter.com/searls/status/1101137953743613952 I decided to try https://github.com/testdouble/standard on our codebase. It's opinionated, but at least it's a _standard_.
Diffstat (limited to 'spec/models/user_status_spec.rb')
-rw-r--r--spec/models/user_status_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/models/user_status_spec.rb b/spec/models/user_status_spec.rb
index fcc01cdae3d..b6f44d56e1f 100644
--- a/spec/models/user_status_spec.rb
+++ b/spec/models/user_status_spec.rb
@@ -1,18 +1,18 @@
# frozen_string_literal: true
-require 'spec_helper'
+require "spec_helper"
describe UserStatus do
it { is_expected.to validate_presence_of(:user) }
- it { is_expected.to allow_value('smirk').for(:emoji) }
- it { is_expected.not_to allow_value('hello world').for(:emoji) }
- it { is_expected.not_to allow_value('').for(:emoji) }
+ it { is_expected.to allow_value("smirk").for(:emoji) }
+ it { is_expected.not_to allow_value("hello world").for(:emoji) }
+ it { is_expected.not_to allow_value("").for(:emoji) }
it { is_expected.to validate_length_of(:message).is_at_most(100) }
- it { is_expected.to allow_value('').for(:message) }
+ it { is_expected.to allow_value("").for(:message) }
- it 'is expected to be deleted when the user is deleted' do
+ it "is expected to be deleted when the user is deleted" do
status = create(:user_status)
expect { status.user.destroy }.to change { described_class.count }.from(1).to(0)