diff --git a/spec/gettext_i18n_rails/haml_parser_spec.rb b/spec/gettext_i18n_rails/haml_parser_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/gettext_i18n_rails/haml_parser_spec.rb
+++ b/spec/gettext_i18n_rails/haml_parser_spec.rb
@@ -23,11 +23,13 @@ describe GettextI18nRails::HamlParser do
       end
     end
 
-    it "should parse the 1.9" do
-      with_file '= _("xxxx", x: 1)' do |path|
-        parser.parse(path, []).should == [
-          ["xxxx", "#{path}:1"]
-        ]
+    it "should parse the 1.9 if ruby_version is 1.9" do
+      if RUBY_VERSION =~ /^1\.9/
+        with_file '= _("xxxx", x: 1)' do |path|
+          parser.parse(path, []).should == [
+            ["xxxx", "#{path}:1"]
+          ]
+        end
       end
     end
Only run spec for <I> when ruby_version is <I>.. this fixes the travis ree testrun