Sha256: 9e4dbe0d36ec125015a77050af3e5ebd3c4ca027f35240d4a25ac6901a798345

Contents?: true

Size: 262 Bytes

Versions: 6

Compression:

Stored size: 262 Bytes

Contents

module SecretServiceSpec
  def self.wipe_store
    SecretService.send(:reset)
    SecretService::DatabaseStore.get.drop_database
  end
end

(defined?(Spec) ? Spec::Runner : RSpec).configure do |config|
  config.before(:each) { SecretServiceSpec.wipe_store }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
secret_service-0.1.5 spec/shared/support/wipe_store.rb
secret_service-0.1.4 spec/shared/support/wipe_store.rb
secret_service-0.1.3 spec/shared/support/wipe_store.rb
secret_service-0.1.2 spec/shared/support/wipe_store.rb
secret_service-0.1.1 spec/shared/support/wipe_store.rb
secret_service-0.1.0 spec/shared/support/wipe_store.rb