Class: Scenario::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = "User Name", email = "[email protected]", pass = "test") ⇒ Base

Returns a new instance of Base.



8
9
10
11
12
# File 'lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb', line 8

def initialize(name = "User Name", email = "[email protected]", pass = "test")
  @git_remote = "[email protected]:path/to/repo.git"
  @user = User.create(:name => name, :email => email, :password => pass)
  @account = @user.accounts.create({"name" => "main"})
end

Instance Attribute Details

#git_remoteObject

Returns the value of attribute git_remote.



5
6
7
# File 'lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb', line 5

def git_remote
  @git_remote
end

#userObject (readonly)

Returns the value of attribute user.



6
7
8
# File 'lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb', line 6

def user
  @user
end