Sha256: fb4cc6949ec212e15a95e75e1bcfffb2940d7b4021cd30cf933a81d5b35ebee8
Contents?: true
Size: 640 Bytes
Versions: 22
Compression:
Stored size: 640 Bytes
Contents
#encoding: utf-8 if defined?(JRUBY_VERSION) require 'spec_helper' include Gherkin::Rubify module Gherkin module Rubify describe "rubify" do before do @java_collection = [mock("Java.java.util.ArrayList")] @java_collection.stub(:===).and_return(Java.java.util.Collection) @java_collection.stub(:line).and_return(15) @rubified_array = rubify(@java_collection) end it "should keep the line number attribute from Java object" do @rubified_array.should respond_to(:line) @rubified_array.line.should == 15 end end end end end
Version data entries
22 entries across 22 versions & 2 rubygems