Commit 0bc48797 authored by Mike Greiling's avatar Mike Greiling

revise sortable_name test formatting

parent dc3d40ff
No related merge requests found
...@@ -245,8 +245,6 @@ describe CommitStatus, models: true do ...@@ -245,8 +245,6 @@ describe CommitStatus, models: true do
end end
describe '#sortable_name' do describe '#sortable_name' do
subject { commit_status.sortable_name }
tests = { tests = {
'karma' => ['karma'], 'karma' => ['karma'],
'karma 0 20' => ['karma ', 0, ' ', 20], 'karma 0 20' => ['karma ', 0, ' ', 20],
...@@ -260,8 +258,7 @@ describe CommitStatus, models: true do ...@@ -260,8 +258,7 @@ describe CommitStatus, models: true do
tests.each do |name, sortable_name| tests.each do |name, sortable_name|
it "'#{name}' sorts as '#{sortable_name}'" do it "'#{name}' sorts as '#{sortable_name}'" do
commit_status.name = name commit_status.name = name
expect(commit_status.sortable_name).to eq(sortable_name)
is_expected.to eq(sortable_name)
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment