Sha256: f6983b6e7a3e9e18353b2e1619d11a2cfc373df75e8d4af1544f71e15d75e37b

Contents?: true

Size: 353 Bytes

Versions: 2

Compression:

Stored size: 353 Bytes

Contents

require "banned_words"

RSpec.configure do |config|
  config.before { stub_file_path }
  config.after  { clear_banned_words_file }
end

def stub_file_path
  Storage::FileStore.stub(:file_path).and_return("#{File.dirname(__FILE__)}/yamls/banned_words.yml")
end

def clear_banned_words_file
  Storage::FileStore.ensure_storage_file
  BannedWords.clear
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
banned_words-0.1.1 spec/spec_helper.rb
banned_words-0.1.0 spec/spec_helper.rb