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
|
@ -24,7 +24,7 @@ describe ProtectedBranch do
|
|||
end
|
||||
|
||||
describe 'Callbacks' do
|
||||
subject { ProtectedBranch.new(:project => project, :name => 'branch_name') }
|
||||
subject { ProtectedBranch.new(project: project, name: 'branch_name') }
|
||||
|
||||
it 'call update_repository after save' do
|
||||
subject.should_receive(:update_repository)
|
||||
|
@ -38,7 +38,7 @@ describe ProtectedBranch do
|
|||
end
|
||||
|
||||
describe '#commit' do
|
||||
subject { ProtectedBranch.new(:project => project, :name => 'cant_touch_this') }
|
||||
subject { ProtectedBranch.new(project: project, name: 'cant_touch_this') }
|
||||
|
||||
it 'commits itself to its project' do
|
||||
project.should_receive(:commit).with('cant_touch_this')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue