Skip to content

Commit

Permalink
Only run spec for 1.9 when ruby_version is 1.9.. this fixes the travi…
Browse files Browse the repository at this point in the history
…s ree testrun
  • Loading branch information
JeroenKnoops committed Jan 20, 2013
1 parent 5552be3 commit 0922e28
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions spec/gettext_i18n_rails/haml_parser_spec.rb
Expand Up @@ -23,11 +23,13 @@
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

Expand Down

0 comments on commit 0922e28

Please sign in to comment.