Sha256: d2d1d56bbbe6744993ea02009924ec310cc6c4ef1842923d3f1c0b5b057db0eb
Contents?: true
Size: 611 Bytes
Versions: 16
Compression:
Stored size: 611 Bytes
Contents
module AccountMacros # Setup the current account. Used for model specs. Need to use :each, otherwise # the created Account does not get cleared between runs #------------------------------------------------------------------------------ def setup_account before :each do account = FactoryGirl.create(:account) Account.current_by_prefix(account.account_prefix) end end end #------------------------------------------------------------------------------ RSpec.configure do |config| config.extend AccountMacros, type: :model config.extend AccountMacros, type: :helper end
Version data entries
16 entries across 16 versions & 1 rubygems