Sha256: 2f513c5eb6443f7f04a08c09402e6242a58bcbdad26fb6a6fed3d39c1056b62d

Contents?: true

Size: 409 Bytes

Versions: 23

Compression:

Stored size: 409 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

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

23 entries across 23 versions & 2 rubygems

Version Path
mongoid-7.3.5 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.3.4 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.1.11 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.2.6 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.3.3 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.3.2 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.2.5 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.1.10 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.1.9 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.2.4 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.3.1 spec/integration/bson_regexp_raw_spec.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/mongoid-7.1.7/spec/integration/bson_regexp_raw_spec.rb
mongoid-7.3.0 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.2.3 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.1.8 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.2.2 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.2.1 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.1.7 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.2.0 spec/integration/bson_regexp_raw_spec.rb
mongoid-7.1.6 spec/integration/bson_regexp_raw_spec.rb