Sha256: 5b5f6132ce1081e863672d9c3a36be462ba6bd4d0a60aee1efa3ad7d24e9f7cc

Contents?: true

Size: 410 Bytes

Versions: 6

Compression:

Stored size: 410 Bytes

Contents

require_relative "../../spec_helper"
describe CodeLister do
  context "#files" do
    it "works with non_exts option" do
      list = CodeLister::Main.run base_dir: "spec/fixtures/",
                                  recursive: true,
                                  non_exts: %w[noexts1_zzz noexts2_zzz]
      expect(list).to eq ["./noexts1_zzz",
                          "./noexts2_zzz"]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
code_lister-0.2.7 spec/lib/code_lister/main_spec.rb
code_lister-0.2.6 spec/lib/code_lister/main_spec.rb
code_lister-0.2.5 spec/lib/code_lister/main_spec.rb
code_lister-0.2.4 spec/lib/code_lister/main_spec.rb
code_lister-0.2.3 spec/lib/code_lister/main_spec.rb
code_lister-0.2.2 spec/lib/code_lister/main_spec.rb