Sha256: 33ff34f30df055545372807a5d21e799671eb1a02ddab2075169f646d455eec4

Contents?: true

Size: 718 Bytes

Versions: 55

Compression:

Stored size: 718 Bytes

Contents

# frozen_string_literal: true

require 'avm/scms/auto_commit/file_resource_name'

RSpec.describe ::Avm::Scms::AutoCommit::FileResourceName, git: true 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

55 entries across 55 versions & 1 rubygems

Version Path
eac_tools-0.83.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.82.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.81.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.80.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.79.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.78.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.77.1 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.77.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.76.1 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.76.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.75.2 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.75.1 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.75.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.74.1 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.74.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.73.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.72.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.70.1 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.70.0 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb
eac_tools-0.69.1 sub/avm/spec/lib/avm/scms/auto_commit/file_resource_name_spec.rb