use ffaker gem
This commit is contained in:
parent
078b312a31
commit
475d9f487f
4 changed files with 7 additions and 8 deletions
|
@ -18,7 +18,7 @@ describe "Hooks" do
|
|||
|
||||
describe "New Hook" do
|
||||
before do
|
||||
@url = Faker::Internet.url
|
||||
@url = Faker::Internet.uri("http")
|
||||
visit project_hooks_path(@project)
|
||||
fill_in "hook_url", :with => @url
|
||||
expect { click_button "Add Web Hook" }.to change(WebHook, :count).by(1)
|
||||
|
@ -30,8 +30,8 @@ describe "Hooks" do
|
|||
end
|
||||
end
|
||||
|
||||
describe "Test" do
|
||||
before do
|
||||
describe "Test" do
|
||||
before do
|
||||
@hook = Factory :web_hook, :project => @project
|
||||
visit project_hooks_path(@project)
|
||||
click_link "Test Hook"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue