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