Sha256: e83db21157900a39097a29ced0b0745137ef788a233e3507ca61a3d7003d3fa4

Contents?: true

Size: 275 Bytes

Versions: 5

Compression:

Stored size: 275 Bytes

Contents

module GlobalHelpers
  def site
    Site.first || raise("Could not find a site. Maybe you want to set one up in your story background?")
  end

  def account
    Account.first || raise("Could not find a site. Maybe you want to set one up in your story background?")
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adva-core-0.0.6 lib/testing/helpers/global_helpers.rb
adva-core-0.0.5 lib/testing/helpers/global_helpers.rb
adva-core-0.0.4 lib/testing/helpers/global_helpers.rb
adva-core-0.0.2 lib/testing/helpers/global_helpers.rb
adva-core-0.0.1 lib/testing/helpers/global_helpers.rb