Sha256: 230032e6a3bcdd4e6faff1617ed7d20c70b37ade79294ea6fc15e89733d4859d
Contents?: true
Size: 832 Bytes
Versions: 4
Compression:
Stored size: 832 Bytes
Contents
# encoding: utf-8 require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') require 'gherkin/format/argument' module Gherkin module Format class BracketFormat class << self def new defined?(JRUBY_VERSION) ? ::Java::GherkinFormatter::ArgumentFormat.new("[", "]") : super end end def format_argument(s) "[#{s}]" end end describe Argument do it "should replace one arg" do argument_class = defined?(JRUBY_VERSION) ? ::Java::GherkinFormatter::Argument : Argument argument_class.format("I have 10 cukes", BracketFormat.new, [Argument.new(7, '10')]).should == "I have [10] cukes" end # TODO: Add this spec: http://github.com/alg/cucumber/commit/33188e9db51f59ced74c4861524d7b2e69454630 end end end
Version data entries
4 entries across 4 versions & 1 rubygems