Sha256: 41a2fff38e7bd12c2a001ace085e30eecd6df891fce812e574ebe559aa3e32d3

Contents?: true

Size: 517 Bytes

Versions: 64

Compression:

Stored size: 517 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.current = FactoryGirl.create(:account)
    end
  end

end

#------------------------------------------------------------------------------
RSpec.configure do |config|
  config.extend  AccountMacros, type: :model
end

Version data entries

64 entries across 64 versions & 4 rubygems

Version Path
dm_newsletter-4.2.3.5 spec/support/accounts.rb
dm_forum-4.2.3.5 spec/support/accounts.rb
dm_event-4.2.3.5 spec/support/accounts.rb
dm_cms-4.2.3.5 spec/support/accounts.rb
dm_newsletter-4.2.3.4 spec/support/accounts.rb
dm_forum-4.2.3.4 spec/support/accounts.rb
dm_event-4.2.3.4 spec/support/accounts.rb
dm_cms-4.2.3.4 spec/support/accounts.rb
dm_newsletter-4.2.3.3 spec/support/accounts.rb
dm_forum-4.2.3.3 spec/support/accounts.rb
dm_event-4.2.3.3 spec/support/accounts.rb
dm_cms-4.2.3.3 spec/support/accounts.rb
dm_newsletter-4.2.3.2 spec/support/accounts.rb
dm_forum-4.2.3.2 spec/support/accounts.rb
dm_event-4.2.3.2 spec/support/accounts.rb
dm_cms-4.2.3.2 spec/support/accounts.rb
dm_newsletter-4.2.3.1 spec/support/accounts.rb
dm_forum-4.2.3.1 spec/support/accounts.rb
dm_event-4.2.3.1 spec/support/accounts.rb
dm_cms-4.2.3.1 spec/support/accounts.rb