Sha256: b062af09edca6a6ae9a58ecba368821f332cff33adf6411fa1f5aaa2e1730852

Contents?: true

Size: 436 Bytes

Versions: 23

Compression:

Stored size: 436 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

require_relative '../../../lib/locomotive/wagon/tools/glob.rb'

describe Locomotive::Wagon::Glob do

  let(:string)    { '' }
  let(:instance)  { described_class.new(string) }

  describe "#to_regexp" do

    subject { instance.to_regexp }

    describe '**/*.css' do

      let(:string) { '**/*.css' }

      it { expect(subject.match('foo/bar/test.css')).not_to eq nil }

    end

  end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
locomotivecms_wagon-3.0.0 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-3.0.0.rc0 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-3.0.0.beta2 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.4.1 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.4.0 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.4.0.rc2 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.4.0.rc1 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.3.0 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.3.0.rc1 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.2.0 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.2.0.rc3 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.2.0.rc2 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.2.0.rc1 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.2.0.beta1 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.1.1 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.1.0 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.1.0.rc5 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.1.0.rc4 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.1.0.rc3 spec/unit/tools/glob_spec.rb
locomotivecms_wagon-2.0.1 spec/unit/tools/glob_spec.rb