Commit 475d9f487f7050fcf8e52b319cd938c0949ed515
1 parent
078b312a
Exists in
master
and in
4 other branches
use ffaker gem
Showing
4 changed files
with
7 additions
and
8 deletions
Show diff stats
Gemfile
| ... | ... | @@ -13,7 +13,7 @@ gem "grit", :git => "https://github.com/gitlabhq/grit.git", :ref => "810e3c11787 |
| 13 | 13 | gem "gitolite", :git => "https://github.com/gitlabhq/gitolite-client.git", :ref => "9b715ca8bab6529f6c92204a25f84d12f25a6eb0" |
| 14 | 14 | gem "carrierwave" |
| 15 | 15 | gem "six" |
| 16 | -gem "faker" | |
| 16 | +gem "ffaker" | |
| 17 | 17 | gem "seed-fu" |
| 18 | 18 | gem "linguist", "~> 1.0.0", :git => "https://github.com/gitlabhq/linguist.git" |
| 19 | 19 | gem "pygments.rb", "0.2.12", :git => "https://github.com/gitlabhq/pygments.rb.git" | ... | ... |
Gemfile.lock
| ... | ... | @@ -131,8 +131,7 @@ GEM |
| 131 | 131 | eventmachine (0.12.10) |
| 132 | 132 | execjs (1.3.2) |
| 133 | 133 | multi_json (~> 1.0) |
| 134 | - faker (1.0.1) | |
| 135 | - i18n (~> 0.4) | |
| 134 | + ffaker (1.14.0) | |
| 136 | 135 | ffi (1.0.11) |
| 137 | 136 | foreman (0.46.0) |
| 138 | 137 | thor (>= 0.13.6) |
| ... | ... | @@ -337,7 +336,7 @@ DEPENDENCIES |
| 337 | 336 | devise (~> 1.5) |
| 338 | 337 | drapper |
| 339 | 338 | email_spec |
| 340 | - faker | |
| 339 | + ffaker | |
| 341 | 340 | foreman |
| 342 | 341 | git |
| 343 | 342 | gitolite! | ... | ... |
spec/factories.rb
spec/requests/hooks_spec.rb
| ... | ... | @@ -18,7 +18,7 @@ describe "Hooks" do |
| 18 | 18 | |
| 19 | 19 | describe "New Hook" do |
| 20 | 20 | before do |
| 21 | - @url = Faker::Internet.url | |
| 21 | + @url = Faker::Internet.uri("http") | |
| 22 | 22 | visit project_hooks_path(@project) |
| 23 | 23 | fill_in "hook_url", :with => @url |
| 24 | 24 | expect { click_button "Add Web Hook" }.to change(WebHook, :count).by(1) |
| ... | ... | @@ -30,8 +30,8 @@ describe "Hooks" do |
| 30 | 30 | end |
| 31 | 31 | end |
| 32 | 32 | |
| 33 | - describe "Test" do | |
| 34 | - before do | |
| 33 | + describe "Test" do | |
| 34 | + before do | |
| 35 | 35 | @hook = Factory :web_hook, :project => @project |
| 36 | 36 | visit project_hooks_path(@project) |
| 37 | 37 | click_link "Test Hook" | ... | ... |