Skip to content

Commit

Permalink
Also process FWhen when unfocusing
Browse files Browse the repository at this point in the history
  • Loading branch information
mezis committed Feb 16, 2018
1 parent df87dfe commit ee65bdb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions ginkgo/unfocus_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func unfocusSpecs([]string, []string) {
unfocus("DescribeTable")
unfocus("Entry")
unfocus("Specify")
unfocus("When")
}

func unfocus(component string) {
Expand Down
6 changes: 6 additions & 0 deletions integration/_fixtures/focused_fixture/focused_fixture_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ var _ = Describe("FocusedFixture", func() {
})
})

FWhen("focused", func() {
It("focused", func() {

})
})

FIt("focused", func() {

})
Expand Down
4 changes: 2 additions & 2 deletions integration/subcommand_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ var _ = Describe("Subcommand", func() {
Eventually(session).Should(gexec.Exit(types.GINKGO_FOCUS_EXIT_CODE))
output := session.Out.Contents()

Ω(string(output)).Should(ContainSubstring("7 Passed"))
Ω(string(output)).Should(ContainSubstring("8 Passed"))
Ω(string(output)).Should(ContainSubstring("5 Skipped"))

session = startGinkgo(pathToTest, "blur")
Expand All @@ -363,7 +363,7 @@ var _ = Describe("Subcommand", func() {
session = startGinkgo(pathToTest, "--noColor")
Eventually(session).Should(gexec.Exit(0))
output = session.Out.Contents()
Ω(string(output)).Should(ContainSubstring("12 Passed"))
Ω(string(output)).Should(ContainSubstring("13 Passed"))
Ω(string(output)).Should(ContainSubstring("0 Skipped"))
})
})
Expand Down

0 comments on commit ee65bdb

Please sign in to comment.