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
|
@ -9,7 +9,7 @@ describe "Hooks" do
|
|||
|
||||
describe "GET index" do
|
||||
it "should be available" do
|
||||
@hook = Factory :project_hook, :project => @project
|
||||
@hook = Factory :project_hook, project: @project
|
||||
visit project_hooks_path(@project)
|
||||
page.should have_content "Hooks"
|
||||
page.should have_content @hook.url
|
||||
|
@ -20,7 +20,7 @@ describe "Hooks" do
|
|||
before do
|
||||
@url = Faker::Internet.uri("http")
|
||||
visit project_hooks_path(@project)
|
||||
fill_in "hook_url", :with => @url
|
||||
fill_in "hook_url", with: @url
|
||||
expect { click_button "Add Web Hook" }.to change(ProjectHook, :count).by(1)
|
||||
end
|
||||
|
||||
|
@ -32,7 +32,7 @@ describe "Hooks" do
|
|||
|
||||
describe "Test" do
|
||||
before do
|
||||
@hook = Factory :project_hook, :project => @project
|
||||
@hook = Factory :project_hook, project: @project
|
||||
stub_request(:post, @hook.url)
|
||||
visit project_hooks_path(@project)
|
||||
click_link "Test Hook"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue