Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-08-29 09:52:19 +0400
committerRobert Speicher <rspeicher@gmail.com>2012-08-29 18:44:34 +0400
commit9d4d40deed5ea649511f3aadd45b3da68c7c3217 (patch)
treed885f66649ac9b5b7c892dccf11cf476133b7c8f /spec/models/merge_request_spec.rb
parent14daf2e2ba9d75527b5de07d87a9027bd53d607e (diff)
Move IssueCommonality and Upvote specs out of models and into their own specs
Diffstat (limited to 'spec/models/merge_request_spec.rb')
-rw-r--r--spec/models/merge_request_spec.rb35
1 files changed, 3 insertions, 32 deletions
diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb
index f4b93eea966..10f0a01fcda 100644
--- a/spec/models/merge_request_spec.rb
+++ b/spec/models/merge_request_spec.rb
@@ -20,38 +20,9 @@ describe MergeRequest do
it { MergeRequest.should respond_to :opened }
end
- describe "plus 1" do
- subject { Factory.create(:merge_request) }
-
- it "with no notes has a 0/0 score" do
- subject.upvotes.should == 0
- end
-
- it "should recognize non-+1 notes" do
- subject.notes << Factory(:note, note: "No +1 here")
- subject.should have(1).note
- subject.notes.first.upvote?.should be_false
- subject.upvotes.should == 0
- end
-
- it "should recognize a single +1 note" do
- subject.notes << Factory(:note, note: "+1 This is awesome")
- subject.upvotes.should == 1
- end
-
- it "should recognize a multiple +1 notes" do
- subject.notes << Factory(:note, note: "+1 This is awesome")
- subject.notes << Factory(:note, note: "+1 I want this")
- subject.upvotes.should == 2
- end
- end
-
- describe ".search" do
- let!(:issue) { Factory.create(:issue, title: "Searchable issue") }
-
- it "matches by title" do
- Issue.search('able').all.should == [issue]
- end
+ describe 'modules' do
+ it { should include_module(IssueCommonality) }
+ it { should include_module(Upvote) }
end
end
# == Schema Information