Skip to content

Commit

Permalink
Example RedHatOfficial#13: Frisby + Unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tisnik committed Nov 13, 2019
1 parent df9b567 commit 0e8ef26
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions testing/frisby/13_frisby_as_test_pass_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package main

import (
"github.com/verdverm/frisby"
"testing"
)

func TestHttpGet(t *testing.T) {
f := frisby.Create("Simplest test").Get("http://httpbin.org/get")
f.Send()
f.ExpectStatus(200)
err := f.Error()
if err != nil {
t.Error(err)
}
}

0 comments on commit 0e8ef26

Please sign in to comment.