#291: updated key_pairs_controller_spec

This commit is contained in:
Vokhmin Alexey V 2013-09-02 19:03:31 +04:00
parent d65214b5df
commit 96ddb9f0ce
2 changed files with 2 additions and 2 deletions

View File

@ -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]

View File

@ -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
} }