Sha256: 815490516dcb57c399cd32997bc36e95717cdc73d8474e8e1ead3fa796bf8281
Contents?: true
Size: 1.08 KB
Versions: 4
Compression:
Stored size: 1.08 KB
Contents
describe "figaro install" do before do create_dir("example") cd("example") end it "creates a configuration file" do run_simple("figaro install") check_file_presence(["config/application.yml"], true) end it "respects path" do run_simple("figaro install -p env.yml") check_file_presence(["env.yml"], true) end context "with a .gitignore file" do before do write_file(".gitignore", <<-EOF) /foo /bar EOF end it "Git-ignores the configuration file if applicable" do run_simple("figaro install") check_file_content(".gitignore", %r(^/foo$), true) check_file_content(".gitignore", %r(^/bar$), true) check_file_content(".gitignore", %r(^/config/application\.yml$), true) end it "respects path" do run_simple("figaro install -p env.yml") check_file_content(".gitignore", %r(^/env\.yml$), true) end end context "without a .gitignore file" do it "doesn't generate a new .gitignore file" do run_simple("figaro install") check_file_presence([".gitignore"], false) end end end
Version data entries
4 entries across 4 versions & 2 rubygems