forked from jberkel/android-app.g8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corrected the MainActivity specs2 specifications.
- Loading branch information
Thuan Hu
committed
Dec 30, 2012
1 parent
4eea413
commit bc687fa
Showing
3 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package $package$ | ||
|
||
import com.github.jbrechtel.robospecs.RoboSpecs | ||
import org.specs2.specification.Scope | ||
import org.specs2.mock.Mockito | ||
|
||
|
||
class MainActivitySpec extends RoboSpecs with Mockito { | ||
|
||
trait TestContext extends Scope { | ||
val activity = new MainActivity() | ||
activity.onCreate(null) | ||
} | ||
|
||
"onCreate" should { | ||
"inflate the layout" in new TestContext { | ||
activity must not beNull | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.