Return repository_id for env vars
This commit is contained in:
parent
cc291446f5
commit
696185e3cd
|
@ -45,7 +45,7 @@ GIT
|
|||
|
||||
GIT
|
||||
remote: git://github.com/travis-ci/travis-core.git
|
||||
revision: 0b46e3bc59c18be16a292f1d3b5cbe3f4e8bb7d3
|
||||
revision: ad2942bfce79a439743422290d4eb859d68a4424
|
||||
specs:
|
||||
travis-core (0.0.1)
|
||||
actionmailer (~> 3.2.19)
|
||||
|
|
|
@ -3,7 +3,7 @@ module Travis
|
|||
module V2
|
||||
module Http
|
||||
class EnvVar < Travis::Api::Serializer
|
||||
attributes :id, :name, :value, :public
|
||||
attributes :id, :name, :value, :public, :repository_id
|
||||
|
||||
def value
|
||||
if object.public?
|
||||
|
|
|
@ -22,6 +22,7 @@ describe Travis::Api::App::SettingsEndpoint do
|
|||
json['env_var']['name'].should == 'FOO'
|
||||
json['env_var']['id'].should == record.id
|
||||
json['env_var']['public'].should be_false
|
||||
json['env_var']['repository_id'].should == repo.id
|
||||
json['env_var'].should_not have_key('value')
|
||||
end
|
||||
|
||||
|
@ -45,6 +46,7 @@ describe Travis::Api::App::SettingsEndpoint do
|
|||
key = json['env_vars'].first
|
||||
key['name'].should == 'FOO'
|
||||
key['id'].should == record.id
|
||||
key['repository_id'].should == repo.id
|
||||
key['public'].should be_false
|
||||
key.should_not have_key('value')
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user