Fix test
now the <a> tag is permited, also the list of allowed tags is in the configuration of ckeditor4
This commit is contained in:
committed by
Javi Martín
parent
d574657b77
commit
bf0472fd58
@@ -222,11 +222,4 @@ describe Budget::Phase do
|
||||
end
|
||||
end
|
||||
|
||||
describe "#sanitize_description" do
|
||||
it "removes html entities from the description" do
|
||||
expect{
|
||||
first_phase.update_attributes(description: "<a>a</p> <javascript>javascript</javascript>")
|
||||
}.to change{ first_phase.description }.to('a javascript')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user