Sha256: 0e857f4e64ffef9f0049aadd0fbbed49863053fe6d264167d5c521555158e56a
Contents?: true
Size: 548 Bytes
Versions: 9
Compression:
Stored size: 548 Bytes
Contents
require 'spec_helper' require 'database_cleaner' DatabaseCleaner.strategy = :truncation def functional_example?(example) path = example.metadata[:example_group][:file_path] path =~ /spec\/functional/ end RSpec.configure do |config| config.before(:each) do Modis.with_connection do |redis| redis.keys('rpush:*').each { |key| redis.del(key) } end Rpush.config.logger = ::Logger.new(STDOUT) if functional_example?(example) end config.after(:each) do DatabaseCleaner.clean if functional_example?(example) end end
Version data entries
9 entries across 9 versions & 1 rubygems