lib/rehearsal.rb in rehearsal-1.0.1 vs lib/rehearsal.rb in rehearsal-1.1.0
- old
+ new
@@ -7,19 +7,21 @@
base.helper_method :rehearsing?
base.before_filter :require_http_basic_auth
end
module ClassMethods
- def rehearse_with(options = {})
+ def rehearse_with(username, password)
class_eval do
define_method(:username) do
- options[:username]
+ username
end
define_method(:password) do
- options[:password]
+ password
end
end
+
+ Rehearsal.config.enabled = true
end
end
class << self
def configure