Permalink
Browse files

Test for Props.testMode detection

Does not serve as a complete spec, only to assert that
during the current run the mode has indeed been
detected as "test."
  • Loading branch information...
1 parent 329dcff commit 7dfa0044d34118ebb43f7b4a6f128946b67d973b @nafg nafg committed Nov 26, 2012
@@ -37,8 +37,6 @@ object MailerSpec extends Specification {
testModeSend.default.set((msg: MimeMessage) => {
lastMessage = Full(msg)
})
-
- assert(Props.testMode)
}
import myMailer._
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2006-2012 WorldWide Conferencing, LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.liftweb
+package util
+
+import org.specs2.mutable.Specification
+
+
+/**
+ * Systems under specification for Lift Mailer.
+ */
+object PropsSpec extends Specification {
+ "Props Specification".title
+
+ "Props" should {
+ "Detect test mode correctly" in {
+ Props.testMode must_== true
+ }
+ }
+}

0 comments on commit 7dfa004

Please sign in to comment.