Sha256: 9694150dacb29178fbd9258f3f1a156c8f3c205948762957507fbfa87b1e6da5

Contents?: true

Size: 395 Bytes

Versions: 17

Compression:

Stored size: 395 Bytes

Contents

describe Appsignal::System do
  describe ".heroku?" do
    subject { described_class.heroku? }

    context "when on Heroku" do
      around { |example| recognize_as_heroku { example.run } }

      it "returns true" do
        is_expected.to eq(true)
      end
    end

    context "when not on Heroku" do
      it "returns false" do
        is_expected.to eq(false)
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
appsignal-2.4.0 spec/lib/appsignal/system_spec.rb
appsignal-2.4.0.alpha.1 spec/lib/appsignal/system_spec.rb
appsignal-2.3.7 spec/lib/appsignal/system_spec.rb
appsignal-2.3.6 spec/lib/appsignal/system_spec.rb
appsignal-2.3.6.beta.1 spec/lib/appsignal/system_spec.rb
appsignal-2.3.4 spec/lib/appsignal/system_spec.rb
appsignal-2.3.3 spec/lib/appsignal/system_spec.rb
appsignal-2.3.3.beta.1 spec/lib/appsignal/system_spec.rb
appsignal-2.3.2 spec/lib/appsignal/system_spec.rb
appsignal-2.3.1 spec/lib/appsignal/system_spec.rb
appsignal-2.3.0 spec/lib/appsignal/system_spec.rb
appsignal-2.3.0.beta.3 spec/lib/appsignal/system_spec.rb
appsignal-2.3.0.beta.2 spec/lib/appsignal/system_spec.rb
appsignal-2.3.0.beta.1 spec/lib/appsignal/system_spec.rb
appsignal-2.2.1 spec/lib/appsignal/system_spec.rb
appsignal-2.2.0 spec/lib/appsignal/system_spec.rb
appsignal-2.2.0.beta.1 spec/lib/appsignal/system_spec.rb