Sha256: 952942ef21ec246bb72a6442226f31208457425b47284e1116eff4752ad410b7
Contents?: true
Size: 753 Bytes
Versions: 65
Compression:
Stored size: 753 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, false) end it "should store the i18n language of the last scanned feature" do @lexer.scan("# language: fr\n") @lexer.i18n_language.iso_code.should == "fr" @lexer.scan("# language: no\n") @lexer.i18n_language.iso_code.should == "no" end it "should use English i18n by default" do @lexer.scan("Feature: foo\n") @lexer.i18n_language.iso_code.should == "en" end it "should === its ruby class, even when the impl is Java" do I18nLexer.should === I18nLexer.new(SexpRecorder.new, true) end end end
Version data entries
65 entries across 65 versions & 1 rubygems