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