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

Version Path
dm_core-4.2.3.10 spec/support/accounts.rb
dm_core-4.2.3.9 spec/support/accounts.rb
dm_core-4.2.3.8 spec/support/accounts.rb
dm_core-4.2.3.7 spec/support/accounts.rb
dm_core-4.2.3.6 spec/support/accounts.rb
dm_core-4.2.3.5 spec/support/accounts.rb
dm_core-4.2.3.4 spec/support/accounts.rb
dm_core-4.2.3.3 spec/support/accounts.rb
dm_core-4.2.3.2 spec/support/accounts.rb
dm_core-4.2.3.1 spec/support/accounts.rb
dm_core-4.2.3 spec/support/accounts.rb
dm_core-4.2.2.3 spec/support/accounts.rb
dm_core-4.2.2.2 spec/support/accounts.rb
dm_core-4.2.2.1 spec/support/accounts.rb
dm_core-4.2.2 spec/support/accounts.rb
dm_core-4.2.1.5 spec/support/accounts.rb