Files
nairobi/spec/shared/models/sanitizable.rb
Javi Martín d5867db2cf Remove unnecessary condition to skip tag list test
This file only has tests related to tags; if the model doesn't have
tags, we simply wouldn't include `it_behaves_as` in their tests instead
of including it and then skipping it.
2022-04-07 15:34:09 +02:00

14 lines
295 B
Ruby

shared_examples "sanitizable" do
let(:sanitizable) { build(model_name(described_class)) }
describe "#tag_list" do
it "sanitizes the tag list" do
sanitizable.tag_list = "user_id=1"
sanitizable.valid?
expect(sanitizable.tag_list).to eq(["user_id1"])
end
end
end