diff options
Diffstat (limited to 'spec/gitlab_access_spec.rb')
-rw-r--r-- | spec/gitlab_access_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/gitlab_access_spec.rb b/spec/gitlab_access_spec.rb index 81de152..13db4bd 100644 --- a/spec/gitlab_access_spec.rb +++ b/spec/gitlab_access_spec.rb @@ -5,7 +5,7 @@ describe GitlabAccess do let(:repository_path) { "/home/git/repositories" } let(:repo_name) { 'dzaporozhets/gitlab-ci' } let(:repo_path) { File.join(repository_path, repo_name) + ".git" } - let(:gitlab_access) { GitlabAccess.new(repo_path, 'key-123', '') } + let(:gitlab_access) { GitlabAccess.new(repo_path, 'key-123', 'wow') } before do GitlabConfig.any_instance.stub(repos_path: repository_path) @@ -14,5 +14,6 @@ describe GitlabAccess do describe :initialize do it { gitlab_access.repo_name.should == repo_name } it { gitlab_access.repo_path.should == repo_path } + it { gitlab_access.changes.should == ['wow'] } end end |