Permalink
Browse files

Test nuts moved to debug vendor.

  • Loading branch information...
1 parent e0d078e commit bd2bdfa7d12c63da15c5cb997f91f946f561a074 @AlekSi committed Feb 17, 2013
Showing with 9 additions and 9 deletions.
  1. +2 −2 integration_test/local_test.go
  2. +3 −3 integration_test/remote_test.go
  3. +3 −3 nut_test.go
  4. +1 −1 spec_test.go
@@ -106,7 +106,7 @@ func (*L) TestPackInstall(c *C) {
gitNoDiff(c, TestNut1)
_, stderr = runNut(c, TestNut1, "install -v test_nut1-0.0.1.nut")
- c.Check(strings.HasSuffix(stderr, "localhost/AlekSi/test_nut1"), Equals, true)
+ c.Check(strings.HasSuffix(stderr, "localhost/debug/test_nut1"), Equals, true)
stdout, _ = runGo(c, TestNut1, "list all")
var newPackages []string
@@ -115,5 +115,5 @@ func (*L) TestPackInstall(c *C) {
newPackages = append(newPackages, p)
}
}
- c.Check(newPackages, DeepEquals, []string{"localhost/AlekSi/test_nut1"})
+ c.Check(newPackages, DeepEquals, []string{"localhost/debug/test_nut1"})
}
@@ -33,15 +33,15 @@ func (*R) TestPublishGet(c *C) {
gitNoDiff(c, TestNut2)
_, stderr = runNut(c, TestNut1, "publish -v test_nut1-0.0.1.nut")
- c.Check(strings.HasSuffix(stderr, `Nut AlekSi/test_nut1 version 0.0.1 published.`), Equals, true)
+ c.Check(strings.HasSuffix(stderr, `Nut debug/test_nut1 version 0.0.1 published.`), Equals, true)
gitNoDiff(c, TestNut1)
_, stderr = runNut(c, TestNut1, "publish -v test_nut1-0.0.1.nut", 1)
- c.Check(strings.HasSuffix(stderr, `Nut AlekSi/test_nut1 version 0.0.1 already exists.`), Equals, true)
+ c.Check(strings.HasSuffix(stderr, `Nut debug/test_nut1 version 0.0.1 already exists.`), Equals, true)
gitNoDiff(c, TestNut1)
_, stderr = runNut(c, TestNut2, "publish -v test_nut2-0.0.2.nut")
- c.Check(strings.HasSuffix(stderr, `Nut AlekSi/test_nut2 version 0.0.2 published.`), Equals, true)
+ c.Check(strings.HasSuffix(stderr, `Nut debug/test_nut2 version 0.0.2 published.`), Equals, true)
gitNoDiff(c, TestNut2)
// _, stderr = runNut(c, "", "get -v test_nut2/0.0.2")
View
@@ -39,12 +39,12 @@ func (f *N) TestNutFile(c *C) {
c.Check(nf.Spec.Version.String(), Equals, "0.0.1")
c.Check(nf.Version.String(), Equals, "0.0.1")
- c.Check(nf.Vendor, Equals, "AlekSi")
+ c.Check(nf.Vendor, Equals, "debug")
c.Check(nf.Package.Name, Equals, "test_nut1")
c.Check(nf.Name, Equals, "test_nut1")
c.Check(nf.FileName(), Equals, "test_nut1-0.0.1.nut")
- c.Check(nf.FilePath("prefix"), Equals, filepath.FromSlash("prefix/AlekSi/test_nut1-0.0.1.nut"))
- c.Check(nf.ImportPath("prefix"), Equals, "prefix/AlekSi/test_nut1")
+ c.Check(nf.FilePath("prefix"), Equals, filepath.FromSlash("prefix/debug/test_nut1-0.0.1.nut"))
+ c.Check(nf.ImportPath("prefix"), Equals, "prefix/debug/test_nut1")
c.Check(nf.Doc, Equals, "Package test_nut1 is used to test nut.")
c.Check(nf.GoFiles, DeepEquals, []string{"test_nut1.go", fmt.Sprintf("test_nut1_%s.go", runtime.GOOS)})
View
@@ -37,7 +37,7 @@ func (f *S) TestReadWrite(c *C) {
c.Assert(err, IsNil)
c.Check(spec.Version.String(), Equals, "0.0.1")
- c.Check(spec.Vendor, Equals, "AlekSi")
+ c.Check(spec.Vendor, Equals, "debug")
c.Check(len(spec.Authors), Equals, 1)
c.Check(spec.Authors[0], Equals, Person{FullName: "Alexey Palazhchenko", Email: "alexey.palazhchenko@gmail.com"})
c.Check(len(spec.ExtraFiles), Equals, 2)

0 comments on commit bd2bdfa

Please sign in to comment.