Sha256: dc1e2bd05f105a04581330806a07aae26333c5e66b4ed72b50bc207f81273d58
Contents?: true
Size: 643 Bytes
Versions: 2
Compression:
Stored size: 643 Bytes
Contents
require "spec_helper" RSpec.describe "suspenders:production:compression", type: :generator do context "generate" do it "adds Rack::Deflater to the middleware" do with_app { generate("suspenders:production:compression") } expect("config/environments/production.rb").to match_contents( %r{config.middleware.use Rack::Deflater} ) end end context "destroy" do it "removes Rack::Deflater to the middleware" do with_app { destroy("suspenders:production:compression") } expect("config/environments/production.rb").not_to match_contents( %r{Rack::Deflater} ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
suspenders-1.55.1 | spec/features/production/compression_spec.rb |
suspenders-1.55.0 | spec/features/production/compression_spec.rb |