Commit f4e8e0733e59cc4127ec8565299160e533617a2d
Committed by
Rafael Manzo
1 parent
54a3b38b
Exists in
colab
and in
4 other branches
Removed unnecessary unit tests for Repository
Showing
1 changed file
with
0 additions
and
33 deletions
Show diff stats
spec/models/repository_spec.rb
... | ... | @@ -1,33 +0,0 @@ |
1 | -require 'rails_helper' | |
2 | - | |
3 | -describe Repository, :type => :model do | |
4 | - describe 'methods' do | |
5 | - describe 'last_processing_of' do | |
6 | - subject { FactoryGirl.build(:repository) } | |
7 | - | |
8 | - context 'with no processing at all' do | |
9 | - before :each do | |
10 | - subject.expects(:has_processing).returns(false) | |
11 | - end | |
12 | - | |
13 | - it 'should return nil' do | |
14 | - expect(subject.last_processing_of).to be_nil | |
15 | - end | |
16 | - end | |
17 | - | |
18 | - context 'with a processing' do | |
19 | - let(:processing) { FactoryGirl.build(:processing) } | |
20 | - | |
21 | - before :each do | |
22 | - subject.expects(:has_processing).returns(true) | |
23 | - end | |
24 | - | |
25 | - it 'should return a ready processing processing' do | |
26 | - subject.expects(:last_processing).returns(processing) | |
27 | - | |
28 | - expect(subject.last_processing_of).to eq(processing) | |
29 | - end | |
30 | - end | |
31 | - end | |
32 | - end | |
33 | -end |