Skip to content

Commit

Permalink
Use Likeno::Entity#all implementation on Repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoamc committed Mar 28, 2016
1 parent 9558cac commit 877a5bf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
4 changes: 0 additions & 4 deletions lib/kalibro_client/entities/processor/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ def last_processing_before(date)
Processing.new(self.class.request("#{self.id}/last_processing/before", {:date => date})['processing'])
end

def self.all
create_objects_array_from_hash(request("", {}, :get))
end

def self.branches(url, scm_type)
request("/branches", {url: url, scm_type: scm_type})
end
Expand Down
13 changes: 0 additions & 13 deletions spec/entities/processor/repository_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,6 @@
end
end

describe 'all' do
before :each do
KalibroClient::Entities::Processor::Repository.
expects(:request).
with("", {}, :get).
returns({'repositories' => [subject.to_hash]})
end

it 'should list all the repositories' do
expect(KalibroClient::Entities::Processor::Repository.all).to include(subject)
end
end

# The only purpose of this test is to cover the overrided save_params method
describe 'save' do
subject {FactoryGirl.build(:repository)}
Expand Down

0 comments on commit 877a5bf

Please sign in to comment.