Sha256: b9a3728371683d1e2b432f6a49e635499f7074a6ba5fcf8098d68f3f97beea2c
Contents?: true
Size: 535 Bytes
Versions: 2
Compression:
Stored size: 535 Bytes
Contents
require 'spec_helper' require 'database_cleaner' DatabaseCleaner.strategy = :truncation def functional_example?(metadata) metadata[:file_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?(self.class.metadata) end config.after(:each) do DatabaseCleaner.clean if functional_example?(self.class.metadata) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rpush-2.3.2-java | spec/functional_spec_helper.rb |
rpush-2.3.2 | spec/functional_spec_helper.rb |