diff --git a/CHANGES.rst b/CHANGES.rst
index 26e005a3..c94a70e0 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -6,6 +6,9 @@ There's a frood who really knows where his towel is.
2.6rc1 (unreleased)
^^^^^^^^^^^^^^^^^^^
+- Add missing upgrade step to cook CSS resources.
+ [hvelarde]
+
- Don't fail in the Twitter plugin if the title has non-ASCII characters.
[csenger, hvelarde]
diff --git a/sc/social/like/profiles/default/metadata.xml b/sc/social/like/profiles/default/metadata.xml
index 36e8fe14..10a1d728 100644
--- a/sc/social/like/profiles/default/metadata.xml
+++ b/sc/social/like/profiles/default/metadata.xml
@@ -1,4 +1,4 @@
- 3041
+ 3042
diff --git a/sc/social/like/tests/test_upgrades.py b/sc/social/like/tests/test_upgrades.py
index cd63546a..88e41d25 100644
--- a/sc/social/like/tests/test_upgrades.py
+++ b/sc/social/like/tests/test_upgrades.py
@@ -186,3 +186,14 @@ def test_register_cover_tiles(self):
registered = api.portal.get_registry_record('plone.app.tiles')
[self.assertIn(t, registered) for t in TILES]
+
+
+class To3042TestCase(UpgradeTestCaseBase):
+
+ def setUp(self):
+ UpgradeTestCaseBase.setUp(self, u'3041', u'3042')
+
+ def test_upgrade_to_3042_registrations(self):
+ version = self.setup.getLastVersionForProfile(self.profile_id)[0]
+ self.assertGreaterEqual(int(version), int(self.to_version))
+ self.assertEqual(self.total_steps, 1)
diff --git a/sc/social/like/upgrades/__init__.py b/sc/social/like/upgrades/__init__.py
index 34294f65..52df159b 100644
--- a/sc/social/like/upgrades/__init__.py
+++ b/sc/social/like/upgrades/__init__.py
@@ -3,14 +3,14 @@
from sc.social.like.logger import logger
-def cook_css_resources(context):
+def cook_css_resources(context): # pragma: no cover
"""Cook css resources."""
css_tool = api.portal.get_tool('portal_css')
css_tool.cookResources()
logger.info('CSS resources were cooked')
-def cook_javascript_resources(context):
+def cook_javascript_resources(context): # pragma: no cover
"""Cook javascript resources."""
js_tool = api.portal.get_tool('portal_javascripts')
js_tool.cookResources()
diff --git a/sc/social/like/upgrades/configure.zcml b/sc/social/like/upgrades/configure.zcml
index b1376b9c..248254a6 100644
--- a/sc/social/like/upgrades/configure.zcml
+++ b/sc/social/like/upgrades/configure.zcml
@@ -7,5 +7,6 @@
+
diff --git a/sc/social/like/upgrades/v3042/__init__.py b/sc/social/like/upgrades/v3042/__init__.py
new file mode 100644
index 00000000..380474e0
--- /dev/null
+++ b/sc/social/like/upgrades/v3042/__init__.py
@@ -0,0 +1 @@
+# -*- coding:utf-8 -*-
diff --git a/sc/social/like/upgrades/v3042/configure.zcml b/sc/social/like/upgrades/v3042/configure.zcml
new file mode 100644
index 00000000..93db680e
--- /dev/null
+++ b/sc/social/like/upgrades/v3042/configure.zcml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+