Sha256: 9894ee4e2e2d904b637ea54cef88f6ac801a5d7e70a66b26acb49c8a1768661e

Contents?: true

Size: 638 Bytes

Versions: 44

Compression:

Stored size: 638 Bytes

Contents

require 'spec_helper'
require 'stringio'

describe EY::Serverside do
  before do
    @original_stderr = $stderr
    @warnings = StringIO.new
    $stderr = @warnings
  end

  after do
    $stderr = @original_stderr
  end

  it "deprecates EY::Serverside::LoggedOutput for EY::Serverside::Shell::Helpers" do
    expect(EY::Serverside::LoggedOutput).to eq(EY::Serverside::Shell::Helpers)
    expect(@warnings.string).to include("EY::Serverside::LoggedOutput")
  end

  it "doesn't interfere with unrelated constants" do
    expect{ EY::Serverside::WTFNotDefined }.to raise_error(NameError, /uninitialized constant.*WTFNotDefined/)
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
engineyard-serverside-2.8.0.pre4 spec/deprecation_spec.rb
engineyard-serverside-2.8.0.pre spec/deprecation_spec.rb
engineyard-serverside-2.6.17 spec/deprecation_spec.rb
engineyard-serverside-2.6.15.pre spec/deprecation_spec.rb
engineyard-serverside-2.6.14 spec/deprecation_spec.rb
engineyard-serverside-2.6.13 spec/deprecation_spec.rb
engineyard-serverside-2.6.12 spec/deprecation_spec.rb
engineyard-serverside-2.6.12.prewut5 spec/deprecation_spec.rb
engineyard-serverside-2.6.12.prewut4 spec/deprecation_spec.rb
engineyard-serverside-2.6.12.prewut3 spec/deprecation_spec.rb
engineyard-serverside-2.6.12.prewut2 spec/deprecation_spec.rb
engineyard-serverside-2.6.12.prewut1 spec/deprecation_spec.rb
engineyard-serverside-2.6.12.prewut0 spec/deprecation_spec.rb
engineyard-serverside-2.6.11 spec/deprecation_spec.rb
engineyard-serverside-2.6.10 spec/deprecation_spec.rb
engineyard-serverside-2.6.9pre3 spec/deprecation_spec.rb
engineyard-serverside-2.6.9pre2 spec/deprecation_spec.rb
engineyard-serverside-2.6.9pre1 spec/deprecation_spec.rb
engineyard-serverside-2.6.8 spec/deprecation_spec.rb
engineyard-serverside-2.6.8pre2 spec/deprecation_spec.rb