summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-01-13 14:54:25 -0500
committerMike Greiling <mike@pixelcog.com>2017-01-13 14:54:25 -0500
commit0bc48797c8559a1f9c042b74e2faadc820fc7257 (patch)
treee9570b7d4af8648fcda3f7020fb74b80d55715e1
parentdc3d40ff28e4087120d48a94db5bd3d3b32f164d (diff)
downloadgitlab-ce-0bc48797c8559a1f9c042b74e2faadc820fc7257.tar.gz
revise sortable_name test formatting
-rw-r--r--spec/models/commit_status_spec.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/models/commit_status_spec.rb b/spec/models/commit_status_spec.rb
index daabc804d16..64ea607eb95 100644
--- a/spec/models/commit_status_spec.rb
+++ b/spec/models/commit_status_spec.rb
@@ -245,8 +245,6 @@ describe CommitStatus, models: true do
end
describe '#sortable_name' do
- subject { commit_status.sortable_name }
-
tests = {
'karma' => ['karma'],
'karma 0 20' => ['karma ', 0, ' ', 20],
@@ -260,8 +258,7 @@ describe CommitStatus, models: true do
tests.each do |name, sortable_name|
it "'#{name}' sorts as '#{sortable_name}'" do
commit_status.name = name
-
- is_expected.to eq(sortable_name)
+ expect(commit_status.sortable_name).to eq(sortable_name)
end
end
end