Sha256: cd855f9cc996b3560edb28a49a3d7cd943c941839757662ed7bb0d8917fe38cc

Contents?: true

Size: 711 Bytes

Versions: 17

Compression:

Stored size: 711 Bytes

Contents

# frozen_string_literal: true

require 'avm/scms/auto_commit/file_resource_name'

RSpec.describe Avm::Scms::AutoCommit::FileResourceName, :git do
  let(:git) { stubbed_git_local_repo }

  describe '#class_name' do
    {
      'app/models/mynamespace/the_class.rb' => 'Mynamespace::TheClass',
      'lib/ruby/lib/cliutils/eac_redmine_base0/activity.rb' => 'Cliutils::EacRedmineBase0::Activity'
    }.each do |relative_path, expected_class_name|
      context "when path is \"#{relative_path}\"" do
        let(:path) { git.root_path.join(relative_path) }
        let(:instance) { described_class.new(git, path) }

        it { expect(instance.class_name).to eq(expected_class_name) }
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
eac_tools-0.94.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.92.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.91.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.87.1 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.87.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.86.12 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.86.11 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.86.8 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.86.7 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.86.5 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.86.4 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.86.3 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.86.2 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.86.1 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.84.2 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.84.1 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.84.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb