Sha256: 0cbf23c6b39977b992bbb19353b70cf80b703a3cdf796afbc149839a401eb84f

Contents?: true

Size: 391 Bytes

Versions: 29

Compression:

Stored size: 391 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe BSON::Regexp::Raw do
  context 'fully qualified name' do
    it 'can be created' do
      regexp = BSON::Regexp::Raw.new('foo')
      regexp.pattern.should == 'foo'
    end
  end

  context 'via ::Regexp' do
    it 'can be created' do
      regexp = Regexp::Raw.new('foo')
      regexp.pattern.should == 'foo'
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
mongoid-8.0.10 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.1.10 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.1.9 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.0.9 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.1.8 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.1.7 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.1.6 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.0.8 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.1.5 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.1.4 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.0.7 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.1.3 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.1.2 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.0.6 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.5.4 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.1.1 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.0.5 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.1.0 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.5.3 spec/integration/bson_regexp_raw_spec.rb
mongoid-8.0.4 spec/integration/bson_regexp_raw_spec.rb