use ffaker gem

This commit is contained in:
Nihad Abbasov 2012-05-29 17:35:34 +05:00
parent 078b312a31
commit 475d9f487f
4 changed files with 7 additions and 8 deletions

View file

@ -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"