spec/figaro/cli/heroku_set_spec.rb in figaro-1.0.0 vs spec/figaro/cli/heroku_set_spec.rb in figaro-1.1.0
- old
+ new
@@ -44,9 +44,18 @@
expect(command.name).to eq("heroku")
expect(command.args.shift).to eq("config:set")
expect(command.args).to match_array(["foo=bar", "--app=foo-bar-app"])
end
+ it "targets a specific Heroku git remote" do
+ run_simple("figaro heroku:set --remote production")
+
+ command = commands.last
+ expect(command.name).to eq("heroku")
+ expect(command.args.shift).to eq("config:set")
+ expect(command.args).to match_array(["foo=bar", "--remote=production"])
+ end
+
it "handles values with special characters" do
overwrite_file("config/application.yml", "foo: bar baz")
run_simple("figaro heroku:set")