@@ -4,8 +4,5 @@ describe Classification do
   it { should belong_to(:classifiable) }
   it { should belong_to(:topic) }
 
-  it "ensures uniqueness" do
-    create(:classification)
-    should validate_uniqueness_of(:classifiable_id).scoped_to([:topic_id, :classifiable_type])
-  end
+  it { should validate_uniqueness_of(:topic_id).scoped_to([:classifiable_id, :classifiable_type]) }
 end
require "rails_helper"

describe Classification do
  it { should belong_to(:classifiable) }
  it { should belong_to(:topic) }

  it "ensures uniqueness" do
    create(:classification)
    should validate_uniqueness_of(:classifiable_id).scoped_to([:topic_id, :classifiable_type])
  end
end

Style/SymbolArray: Use %i or %I for an array of symbols.<br>Metrics/LineLength: Line is too long. [99/80]