more tests fixed

This commit is contained in:
Dmitriy Zaporozhets 2013-01-15 16:36:35 +02:00
parent b059de2ac7
commit 752eb2c11d
3 changed files with 5 additions and 9 deletions

View file

@ -1,14 +1,8 @@
require 'spec_helper'
describe Issue do
it { should include_module(Votes) }
end
describe MergeRequest do
let(:merge_request) { FactoryGirl.create(:merge_request_with_diffs) }
it { should include_module(Votes) }
describe "#upvotes" do
it "with no notes has a 0/0 score" do
merge_request.upvotes.should == 0