Sha256: 89280493f62328ff621499c6acef95d1e7b18f4274f9adddb403046a043f0b67

Contents?: true

Size: 301 Bytes

Versions: 9

Compression:

Stored size: 301 Bytes

Contents

require 'spec_helper'
require 'bitbucket_rest_api/core_ext/array'

describe Array do
  let(:array) { [:a, :b, :c, :d, { key: :value }] }

  describe '#extract_options!' do
    it 'selects a hash from the arguments list' do
      expect(array.extract_options!).to eq({ key: :value })
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
zz_bitbucket_rest_api-0.1.11 spec/bitbucket_rest_api/core_ext/array_spec.rb
zz_bitbucket_rest_api-0.1.10 spec/bitbucket_rest_api/core_ext/array_spec.rb
zz_bitbucket_rest_api-0.1.9 spec/bitbucket_rest_api/core_ext/array_spec.rb
zz_bitbucket_rest_api-0.1.8 spec/bitbucket_rest_api/core_ext/array_spec.rb
bitbucket_rest_api2-0.9.5 spec/bitbucket_rest_api/core_ext/array_spec.rb
bitbucket_rest_api2-0.9.1 spec/bitbucket_rest_api/core_ext/array_spec.rb
bitbucket_rest_api2-0.2.2 spec/bitbucket_rest_api/core_ext/array_spec.rb
bitbucket_rest_api2-0.2.1 spec/bitbucket_rest_api/core_ext/array_spec.rb
bitbucket_rest_api2-0.2.0 spec/bitbucket_rest_api/core_ext/array_spec.rb