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
|
@ -26,8 +26,8 @@ describe Milestone do
|
|||
end
|
||||
|
||||
let(:project) { Factory :project }
|
||||
let(:milestone) { Factory :milestone, :project => project }
|
||||
let(:issue) { Factory :issue, :project => project }
|
||||
let(:milestone) { Factory :milestone, project: project }
|
||||
let(:issue) { Factory :issue, project: project }
|
||||
|
||||
it { milestone.should be_valid }
|
||||
|
||||
|
@ -39,14 +39,14 @@ describe Milestone do
|
|||
it { milestone.percent_complete.should == 0 }
|
||||
|
||||
it do
|
||||
issue.update_attributes :closed => true
|
||||
issue.update_attributes closed: true
|
||||
milestone.percent_complete.should == 100
|
||||
end
|
||||
end
|
||||
|
||||
describe :expires_at do
|
||||
before do
|
||||
milestone.update_attributes :due_date => Date.today + 1.day
|
||||
milestone.update_attributes due_date: Date.today + 1.day
|
||||
end
|
||||
|
||||
it { milestone.expires_at.should_not be_nil }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue