spec/unit/persistence/redis_persistence_spec.rb in aasm-4.11.1 vs spec/unit/persistence/redis_persistence_spec.rb in aasm-4.12.0
- old
+ new
@@ -1,11 +1,9 @@
+require 'spec_helper'
-describe 'redis' do
- begin
- require 'redis-objects'
- require 'logger'
- require 'spec_helper'
+if defined?(Redis::Objects)
+ describe 'redis' do
before(:all) do
Redis.current = Redis.new(host: '127.0.0.1', port: 6379)
@model = Class.new do
@@ -69,9 +67,7 @@
expect(@model.aasm.attribute_name).to eq(:status)
expect(Class.new(@model).aasm.attribute_name).to eq(:status)
end
end
- rescue LoadError
- puts "Not running Redis specs because sequel gem is not installed!!!"
end
end