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

revise sortable_name test formatting

parent dc3d40ff
......@@ -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
......
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