1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

Add reason for pending spec

This commit is contained in:
Andrew Haines 2013-03-03 10:34:56 +00:00
parent 7d63298757
commit b69fe80498

View file

@ -46,8 +46,8 @@ describe PostDecorator do
end
it "serializes to XML" do
# Rails < 3.2 does not use `serializable_hash` in `to_xml`
pending if Rails.version.to_f < 3.2
pending("Rails < 3.2 does not use `serializable_hash` in `to_xml`") if Rails.version.to_f < 3.2
xml = Capybara.string(decorator.to_xml)
expect(xml).to have_css "post > updated-at", text: "overridden"
end