Sha256: ab4f433ce3b465b5c99e72a5d9396e01b93b1a3b0d0deb88c0a89bdf85aa5057
Contents?: true
Size: 936 Bytes
Versions: 4
Compression:
Stored size: 936 Bytes
Contents
require "spec_helper" RSpec.describe "suspenders:runner", type: :generator do it "configures the app for running" do with_app { generate("suspenders:runner") } expect("Procfile").to exist_as_a_file expect(".sample.env").to exist_as_a_file expect("bin/setup").to match_contents(/\.sample\.env/) expect("README.md").to match_contents(/\.sample\.env/) end it "removes custom app running configuration" do with_app { destroy("suspenders:runner") } expect("README.md").not_to match_contents(/\.sample\.env/) expect("bin/setup").not_to match_contents(/\.sample\.env/) expect(".sample.env").not_to exist_as_a_file expect("Procfile").not_to exist_as_a_file end it "configures the app with a shell script bin/setup" do with_app do copy_file "bin_setup", "bin/setup" generate("suspenders:runner") end expect("bin/setup").to match_contents(/\.sample\.env/) end end
Version data entries
4 entries across 4 versions & 1 rubygems