diff --git a/spec/helpers/calculators/calculators_helper_spec.rb b/spec/helpers/calculators/calculators_helper_spec.rb index 394a6c718..08acd7b47 100644 --- a/spec/helpers/calculators/calculators_helper_spec.rb +++ b/spec/helpers/calculators/calculators_helper_spec.rb @@ -16,27 +16,25 @@ '' end - let(:result) { |html| helper.sanitized_notes(html) } - it "allows specific tags and attributes" do - expect(result(valid_html)).to include('
') - expect(result(valid_html)).to include("bold") - expect(result(valid_html)).to include("italic") - expect(result(valid_html)).to include('Link') + expect(helper.sanitized_notes(valid_html)).to include('
') + expect(helper.sanitized_notes(valid_html)).to include("bold") + expect(helper.sanitized_notes(valid_html)).to include("italic") + expect(helper.sanitized_notes(valid_html)).to include('Link') end it "removes disallowed tags" do - expect(result(invalid_html)).not_to include("