Skip to content

Commit

Permalink
Some specs for Git::Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mmozuras committed Sep 10, 2014
1 parent ed3688b commit 565345e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions spec/pronto/git/patch_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
require 'spec_helper'

module Pronto
module Git
describe Patch do
let(:patch) { Patch.new(rugged_patch, repo) }

let(:repo) { nil }

describe '#additions' do
subject { patch.additions }

let(:rugged_patch) { double(stat: [15, 13]) }
it { should == 15 }
end

describe '#deletions' do
subject { patch.deletions }

let(:rugged_patch) { double(stat: [5, 17]) }
it { should == 17 }
end
end
end
end

0 comments on commit 565345e

Please sign in to comment.