Sha256: fd4a1b7c2febb8a249644fd8f9ed18ea218e30365dc236bd3429c0c31c7b91e2

Contents?: true

Size: 716 Bytes

Versions: 18

Compression:

Stored size: 716 Bytes

Contents

require "spec_helper"

RSpec.describe "Error Reporting" do
  before :all do
    drop_dummy_database
    remove_project_directory
    create_dummy_project("sentry" => true)
  end

  it "adds the Sentry gem to Gemfile" do
    gemfile_content = IO.read("#{project_path}/Gemfile")

    expect(gemfile_content).to include("gem 'sentry-raven'")
  end

  it "creates the initializer" do
    initializer_content = IO.read("#{project_path}/config/initializers/sentry.rb")

    expect(initializer_content).to include("Raven.configure")
  end

  it "adds the environment variable to .env.development" do
    env_content = IO.read("#{project_path}/.env.development")

    expect(env_content).to include("SENTRY_DSN=")
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
potassium-6.7.0 spec/features/error_reporting_spec.rb
potassium-6.6.0 spec/features/error_reporting_spec.rb
potassium-6.5.0 spec/features/error_reporting_spec.rb
potassium-6.4.0 spec/features/error_reporting_spec.rb
potassium-6.3.0 spec/features/error_reporting_spec.rb
potassium-6.2.0 spec/features/error_reporting_spec.rb
potassium-6.1.0 spec/features/error_reporting_spec.rb
potassium-6.0.0 spec/features/error_reporting_spec.rb
potassium-5.2.3 spec/features/error_reporting_spec.rb
potassium-5.2.2 spec/features/error_reporting_spec.rb
potassium-5.2.1 spec/features/error_reporting_spec.rb
potassium-5.2.0 spec/features/error_reporting_spec.rb
potassium-5.1.4 spec/features/error_reporting_spec.rb
potassium-5.1.3 spec/features/error_reporting_spec.rb
potassium-5.1.2 spec/features/error_reporting_spec.rb
potassium-5.1.1 spec/features/error_reporting_spec.rb
potassium-3.0.0 spec/features/error_reporting_spec.rb
potassium-2.3.0 spec/features/error_reporting_spec.rb