Sha256: ddb7e12d5bc99cbfa0b9c91d0ae369cf83afb27fc9814a6884f5c607bc02c86b

Contents?: true

Size: 713 Bytes

Versions: 2

Compression:

Stored size: 713 Bytes

Contents

require "spec_helper"

RSpec.describe "suspenders:profiler", type: :generator do
  it "sets up rack-min-profiler" do
    with_app { generate("suspenders:profiler") }

    expect("config/initializers/rack_mini_profiler.rb").to \
      match_contents(/Rack::MiniProfilerRails.initialize/)
    expect("Gemfile").to match_contents(/rack-mini-profiler/)
    expect(".sample.env").to match_contents(/RACK_MINI_PROFILER=0/)
  end

  it "removes rack-min-profiler" do
    with_app { destroy("suspenders:profiler") }

    expect("config/initializers/rack_mini_profiler.rb").not_to exist_as_a_file
    expect("Gemfile").not_to match_contents(/rack-mini-profiler/)
    expect(".sample.env").not_to exist_as_a_file
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
suspenders-1.55.1 spec/features/profiler_spec.rb
suspenders-1.55.0 spec/features/profiler_spec.rb