spec/repo_spec.rb in cutting_edge-0.2 vs spec/repo_spec.rb in cutting_edge-0.2.1
- old
+ new
@@ -10,9 +10,14 @@
it 'has a headers method' do
expect(CuttingEdge::Repository.headers(nil)).to eq ({})
end
+ it 'can take an array of email addresses' do
+ repo = CuttingEdge::GithubRepository.new(org: 'org', name: 'name', email: ['test1@test.org', 'test2@test2.org'])
+ expect(repo.contact_email).to eq ['test1@test.org', 'test2@test2.org']
+ end
+
context 'GitHub' do
it 'has a headers method' do
expect(CuttingEdge::GithubRepository.headers(nil)).to eq ({:accept => 'application/vnd.github.v3.raw'})
expect(CuttingEdge::GithubRepository.headers('token')).to eq ({:accept => 'application/vnd.github.v3.raw', :authorization => 'token token'})
end
\ No newline at end of file