spec/spec_helper.rb in lita-locker-0.5.3 vs spec/spec_helper.rb in lita-locker-0.7.0
- old
+ new
@@ -6,5 +6,17 @@
]
SimpleCov.start { add_filter '/spec/' }
require 'lita-locker'
require 'lita/rspec'
+Lita.version_3_compatibility_mode = false
+
+RSpec.configure do |config|
+ config.before do
+ registry.register_handler(Lita::Handlers::Locker)
+ registry.register_handler(Lita::Handlers::LockerEvents)
+ registry.register_handler(Lita::Handlers::LockerHttp)
+ registry.register_handler(Lita::Handlers::LockerLabels)
+ registry.register_handler(Lita::Handlers::LockerMisc)
+ registry.register_handler(Lita::Handlers::LockerResources)
+ end
+end