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

Version Path
gherkin-2.12.1 spec/gherkin/rubify_spec.rb
gherkin-2.12.1-x86-mswin32 spec/gherkin/rubify_spec.rb
gherkin-2.12.1-x86-mingw32 spec/gherkin/rubify_spec.rb
gherkin-2.12.1-java spec/gherkin/rubify_spec.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/gherkin-2.11.6/spec/gherkin/rubify_spec.rb
gherkin-2.12.0 spec/gherkin/rubify_spec.rb
gherkin-2.12.0-x86-mingw32 spec/gherkin/rubify_spec.rb
gherkin-2.12.0-x86-mswin32 spec/gherkin/rubify_spec.rb
gherkin-2.12.0-java spec/gherkin/rubify_spec.rb
gherkin-2.11.8 spec/gherkin/rubify_spec.rb
gherkin-2.11.8-x86-mswin32 spec/gherkin/rubify_spec.rb
gherkin-2.11.8-x86-mingw32 spec/gherkin/rubify_spec.rb
gherkin-2.11.8-java spec/gherkin/rubify_spec.rb
gherkin-2.11.7 spec/gherkin/rubify_spec.rb
gherkin-2.11.7-x86-mswin32 spec/gherkin/rubify_spec.rb
gherkin-2.11.7-x86-mingw32 spec/gherkin/rubify_spec.rb
gherkin-2.11.7-java spec/gherkin/rubify_spec.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/gherkin-2.11.6/spec/gherkin/rubify_spec.rb
gherkin-2.11.6 spec/gherkin/rubify_spec.rb
gherkin-2.11.6-x86-mswin32 spec/gherkin/rubify_spec.rb