Sha256: fb5d512eb16bb3b6815423fe4e11bd34145785e2362fcaf6ae0a3f919b6f37aa
Contents?: true
Size: 642 Bytes
Versions: 7
Compression:
Stored size: 642 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 = [double("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
7 entries across 5 versions & 2 rubygems