diff --git a/spec/models/budget/phase_spec.rb b/spec/models/budget/phase_spec.rb index 5afc57dfa..34b99e26f 100644 --- a/spec/models/budget/phase_spec.rb +++ b/spec/models/budget/phase_spec.rb @@ -222,4 +222,11 @@ describe Budget::Phase do end end + describe "#sanitize_description" do + it "removes not allowed html entities from the description" do + expect{ + first_phase.update_attributes(description: '

a

') + }.to change{ first_phase.description }.to('

a

javascript') + end + end end