Module: Caviidae::RSpec::Helpers

Defined in:
lib/caviidae/rspec/helpers.rb

Instance Method Summary collapse

Instance Method Details

#current_userObject



14
15
16
# File 'lib/caviidae/rspec/helpers.rb', line 14

def current_user
  User.find_by_Username(Caviidae.configuration.username)
end

#dbObject



5
6
7
# File 'lib/caviidae/rspec/helpers.rb', line 5

def db
  ::Caviidae.db
end

#sobject_typesObject



9
10
11
12
# File 'lib/caviidae/rspec/helpers.rb', line 9

def sobject_types
  @sobject_types = db.list_sobjects unless @sobject_types
  @sobject_types
end