#291: updated key_pairs_controller_spec
This commit is contained in:
parent
d65214b5df
commit
96ddb9f0ce
|
@ -1,4 +1,4 @@
|
||||||
class Platforms::KeyPairsController < ApplicationController
|
class Platforms::KeyPairsController < Platforms::BaseController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
|
|
||||||
load_and_authorize_resource :platform, :only => [:index]
|
load_and_authorize_resource :platform, :only => [:index]
|
||||||
|
|
|
@ -78,7 +78,7 @@ describe Platforms::KeyPairsController do
|
||||||
@create_params = {
|
@create_params = {
|
||||||
:platform_id => @platform,
|
:platform_id => @platform,
|
||||||
:key_pair => {
|
:key_pair => {
|
||||||
:repository_id => @repository,
|
:repository_id => @repository.id,
|
||||||
:public => kp.public,
|
:public => kp.public,
|
||||||
:secret => kp.secret
|
:secret => kp.secret
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue