spec/rake/funnel/integration/teamcity/teamcity_spec.rb in rake-funnel-0.3.2.pre vs spec/rake/funnel/integration/teamcity/teamcity_spec.rb in rake-funnel-0.4.0.pre

- old
+ new

@@ -1,34 +1,34 @@ -describe Rake::Funnel::Integration::TeamCity do - before { - allow(ENV).to receive(:include?).with(described_class::ENV_VAR).and_return(teamcity_running?) - } - - context 'when running outside TeamCity' do - let(:teamcity_running?) { false } - - it 'should not detect TeamCity' do - expect(described_class.running?).to eq(false) - end - - it "should not detect TeamCity's rake runner" do - expect(described_class.rake_runner?).to eq(false) - end - end - - context 'when running inside TeamCity' do - let(:teamcity_running?) { true } - - it 'should detect TeamCity' do - expect(described_class.running?).to eq(true) - end - - it "should detect TeamCity's rake runner" do - module ::Rake - module TeamCityApplication - end - end - - expect(described_class.rake_runner?).to eq(true) - end - end -end +describe Rake::Funnel::Integration::TeamCity do + before { + allow(ENV).to receive(:include?).with(described_class::ENV_VAR).and_return(teamcity_running?) + } + + context 'when running outside TeamCity' do + let(:teamcity_running?) { false } + + it 'should not detect TeamCity' do + expect(described_class.running?).to eq(false) + end + + it "should not detect TeamCity's rake runner" do + expect(described_class.rake_runner?).to eq(false) + end + end + + context 'when running inside TeamCity' do + let(:teamcity_running?) { true } + + it 'should detect TeamCity' do + expect(described_class.running?).to eq(true) + end + + it "should detect TeamCity's rake runner" do + module ::Rake + module TeamCityApplication + end + end + + expect(described_class.rake_runner?).to eq(true) + end + end +end