spec/invoker/config_spec.rb in invoker-1.0.3 vs spec/invoker/config_spec.rb in invoker-1.0.4
- old
+ new
@@ -143,27 +143,7 @@
expect(command1.cmd).to match(/bundle exec rails/)
ensure
File.delete("/tmp/Procfile")
end
end
-
- it "should load environment variables from .env file" do
- begin
- env_file = File.new("#{ENV['PWD']}/.env", "w")
- env_data =<<-EOD
-TEST="test env"
- EOD
- env_file.write(env_data)
- env_file.close()
- File.open("/tmp/Procfile", "w") {|fl|
- fl.write <<-EOD
-web: bundle exec rails s -p $PORT
- EOD
- }
- config = Invoker::Parsers::Config.new("/tmp/Procfile", 9000)
- expect(ENV["TEST"]).to eq("test env")
- ensure
- File.delete("#{ENV['PWD']}/.env")
- end
- end
end
end