diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb deleted file mode 100644 index 0c0562f..0000000 --- a/spec/models/repository_spec.rb +++ /dev/null @@ -1,33 +0,0 @@ -require 'rails_helper' - -describe Repository, :type => :model do - describe 'methods' do - describe 'last_processing_of' do - subject { FactoryGirl.build(:repository) } - - context 'with no processing at all' do - before :each do - subject.expects(:has_processing).returns(false) - end - - it 'should return nil' do - expect(subject.last_processing_of).to be_nil - end - end - - context 'with a processing' do - let(:processing) { FactoryGirl.build(:processing) } - - before :each do - subject.expects(:has_processing).returns(true) - end - - it 'should return a ready processing processing' do - subject.expects(:last_processing).returns(processing) - - expect(subject.last_processing_of).to eq(processing) - end - end - end - end -end -- libgit2 0.21.2