Sha256: 250b43969f977a2a11a91c3fa1533f11d1a157a52a32f32082d26ea4370994db

Contents?: true

Size: 510 Bytes

Versions: 4

Compression:

Stored size: 510 Bytes

Contents

require "spec_helper"

RSpec.describe "suspenders:static", type: :generator do
  it "adds the gem and pages directory" do
    with_app { generate("suspenders:static") }

    expect("Gemfile").to match_contents(/high_voltage/)
    expect("app/views/pages/.keep").to exist_as_a_file
  end

  it "removes the gem and pages directory" do
    with_app { destroy("suspenders:static") }

    expect("app/views/pages/.keep").not_to exist_as_a_file
    expect("Gemfile").not_to match_contents(/high_voltage/)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
suspenders-1.55.1 spec/features/static_spec.rb
suspenders-1.55.0 spec/features/static_spec.rb
suspenders-1.54.1 spec/features/static_spec.rb
suspenders-1.54.0 spec/features/static_spec.rb