Browse files

update specs to workaround ensure_valid (for now)

  • Loading branch information...
1 parent 7560a3a commit c246a3ba45a180a3b6ba527736be368e4d41212f @pbrisbin committed Jun 19, 2012
Showing with 9 additions and 2 deletions.
  1. +6 −0 spec/dispatch_spec.rb
  2. +3 −2 spec/spec_helper.rb
View
6 spec/dispatch_spec.rb
@@ -8,6 +8,9 @@ module Basil
@responder = Plugin.respond_to(/a match/) { self }
@watcher = Plugin.watch_for(/a match/) { self }
+
+ # lift this requirement for the test
+ Dispatch.stub(:ensure_valid) { |obj| obj }
end
it "handles nil or empty messages" do
@@ -33,6 +36,9 @@ module Basil
Plugin.email_checkers.clear
@checker = Plugin.check_email(/a match/) { self }
+
+ # lift this requirement for the test
+ Dispatch.stub(:ensure_valid) { |obj| obj }
end
it "handles nil or empty subject lines" do
View
5 spec/spec_helper.rb
@@ -3,7 +3,8 @@
add_filter "/spec/"
end
-require 'basil'
-
# quiet logging during tests
+require 'basil/logging'
Basil::Logger.level = ::Logger::FATAL
+
+require 'basil'

0 comments on commit c246a3b

Please sign in to comment.