Fully embrace Ruby 1.9 hash syntax
Didn't bother with files in db/, config/, or features/
This commit is contained in:
parent
1413c23c50
commit
7754189187
257 changed files with 1449 additions and 1449 deletions
|
@ -21,17 +21,17 @@ describe MergeRequest do
|
|||
end
|
||||
|
||||
it { Factory.create(:merge_request,
|
||||
:author => Factory(:user),
|
||||
:assignee => Factory(:user),
|
||||
:project => Factory.create(:project)).should be_valid }
|
||||
author: Factory(:user),
|
||||
assignee: Factory(:user),
|
||||
project: Factory.create(:project)).should be_valid }
|
||||
|
||||
describe "plus 1" do
|
||||
let(:project) { Factory(:project) }
|
||||
subject {
|
||||
Factory.create(:merge_request,
|
||||
:author => Factory(:user),
|
||||
:assignee => Factory(:user),
|
||||
:project => project)
|
||||
author: Factory(:user),
|
||||
assignee: Factory(:user),
|
||||
project: project)
|
||||
}
|
||||
|
||||
it "with no notes has a 0/0 score" do
|
||||
|
@ -58,8 +58,8 @@ describe MergeRequest do
|
|||
end
|
||||
|
||||
describe ".search" do
|
||||
let!(:issue) { Factory.create(:issue, :title => "Searchable issue",
|
||||
:project => Factory.create(:project)) }
|
||||
let!(:issue) { Factory.create(:issue, title: "Searchable issue",
|
||||
project: Factory.create(:project)) }
|
||||
|
||||
it "matches by title" do
|
||||
Issue.search('able').all.should == [issue]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue