Sha256: c64fb25673fde88928bcb049e905d8257153d718134cf462ae6d1e471db2bf0a
Contents?: true
Size: 803 Bytes
Versions: 15
Compression:
Stored size: 803 Bytes
Contents
#encoding: utf-8 require 'spec_helper' module Gherkin describe I18nLexer do before do @lexer = Gherkin::I18nLexer.new(Gherkin::SexpRecorder.new, false) end it "should store the i18n language of the last scanned feature" do @lexer.scan("# language: fr\n", "fr.feature", 0) @lexer.i18n_language.iso_code.should == "fr" @lexer.scan("# language: no\n", "en.feature", 0) @lexer.i18n_language.iso_code.should == "no" end it "should use English i18n by default" do @lexer.scan("Feature: foo\n", "foo.feature", 0) @lexer.i18n_language.iso_code.should == "en" end it "should === its ruby class, even when the impl is Java" do Gherkin::I18nLexer.should === Gherkin::I18nLexer.new(Gherkin::SexpRecorder.new, true) end end end
Version data entries
15 entries across 15 versions & 1 rubygems