Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1035)

Unified Diff: cmd/juju/switch_test.go

Issue 92140043: Init EnvCommandBase.EnvName from envs.yaml
Patch Set: Init EnvCommandBase.EnvName from envs.yaml Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cmd/juju/switch.go ('k') | cmd/juju/synctools.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cmd/juju/switch_test.go
=== modified file 'cmd/juju/switch_test.go'
--- cmd/juju/switch_test.go 2014-01-29 13:46:37 +0000
+++ cmd/juju/switch_test.go 2014-05-08 06:38:13 +0000
@@ -8,7 +8,7 @@
gc "launchpad.net/gocheck"
- "launchpad.net/juju-core/cmd"
+ "launchpad.net/juju-core/cmd/envcmd"
_ "launchpad.net/juju-core/juju"
"launchpad.net/juju-core/testing"
)
@@ -69,7 +69,7 @@
context, err := testing.RunCommand(c, &SwitchCommand{}, []string{"erewhemos-2"})
c.Assert(err, gc.IsNil)
c.Assert(testing.Stdout(context), gc.Equals, "erewhemos -> erewhemos-2\n")
- c.Assert(cmd.ReadCurrentEnvironment(), gc.Equals, "erewhemos-2")
+ c.Assert(envcmd.ReadCurrentEnvironment(), gc.Equals, "erewhemos-2")
}
func (*SwitchSimpleSuite) TestSettingToUnknown(c *gc.C) {
« no previous file with comments | « cmd/juju/switch.go ('k') | cmd/juju/synctools.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b