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

Version Path
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/gherkin-2.12.2/spec/gherkin/rubify_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/gherkin-2.12.2/spec/gherkin/rubify_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/gherkin-2.12.2/spec/gherkin/rubify_spec.rb
gherkin-2.12.2 spec/gherkin/rubify_spec.rb
gherkin-2.12.2-x86-mswin32 spec/gherkin/rubify_spec.rb
gherkin-2.12.2-x86-mingw32 spec/gherkin/rubify_spec.rb
gherkin-2.12.2-java spec/gherkin/rubify_spec.rb