Sha256: dff625a50c200b838ce10905f72a5ccbed2994d940f7083e1d8de8090dbba301
Contents?: true
Size: 576 Bytes
Versions: 4
Compression:
Stored size: 576 Bytes
Contents
#encoding: utf-8 require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') module Gherkin describe I18nLexer do before do @lexer = I18nLexer.new(SexpRecorder.new) end it "should store the i18n language of the last scanned feature" do @lexer.scan("# language: fr\n") @lexer.language.key.should == "fr" @lexer.scan("# language: no\n") @lexer.language.key.should == "no" end it "should use English i18n by default" do @lexer.scan("Feature: foo\n") @lexer.language.key.should == "en" end end end
Version data entries
4 entries across 4 versions & 1 rubygems