Sha256: 5bf2f6a641da90952c8b2c50ca0b3d74faf4c6ea597a4c4ab4e3d5789533a829
Contents?: true
Size: 642 Bytes
Versions: 3
Compression:
Stored size: 642 Bytes
Contents
require "test_helper" require "rubycritic/source_control_systems/base" describe Rubycritic::SourceControlSystem do before do Rubycritic::SourceControlSystem::Base.systems.each do |system| system.stubs(:supported?).returns(false) end end describe "::create" do describe "when a source control system is found" do it "creates an instance of that source control system" do Rubycritic::SourceControlSystem::Git.stubs(:supported?).returns(true) system = Rubycritic::SourceControlSystem::Base.create system.must_be_instance_of Rubycritic::SourceControlSystem::Git end end end end
Version data entries
3 entries across 3 versions & 1 rubygems