poodle-rb 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/helpers/poodle/image_helper.rb +1 -1
- data/app/uploaders/image_uploader.rb +1 -1
- data/lib/poodle/version.rb +1 -1
- data/spec/dummy/log/test.log +1248 -0
- data/spec/dummy/spec/helpers/image_helper_spec.rb +3 -3
- metadata +2 -2
@@ -29,8 +29,8 @@ module Poodle
|
|
29
29
|
end
|
30
30
|
|
31
31
|
it "should return careerwave url for user with profile picture" do
|
32
|
-
expect(helper.image_url(user_with_image, "profile_picture.image.large.url")).to eq("/
|
33
|
-
expect(helper.image_url(user_with_image, "profile_picture.image.thumb.url")).to eq("/
|
32
|
+
expect(helper.image_url(user_with_image, "profile_picture.image.large.url")).to eq("/public/uploads/image/profile_picture/1/large_test.jpg")
|
33
|
+
expect(helper.image_url(user_with_image, "profile_picture.image.thumb.url")).to eq("/public/uploads/image/profile_picture/1/thumb_test.jpg")
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
@@ -56,7 +56,7 @@ module Poodle
|
|
56
56
|
it "should display placeholder image for user without image" do
|
57
57
|
exptected_result = content_tag(:div) do
|
58
58
|
content_tag(:div, class: "rounded", style: "width:60px;height:auto") do
|
59
|
-
image_tag(placeholdit(), {style: "width:100%;height:auto;cursor:default;", class: "#{user.id}-poodle-thumb-image"})
|
59
|
+
image_tag(placeholdit(text: namify(user.name)), {style: "width:100%;height:auto;cursor:default;", class: "#{user.id}-poodle-thumb-image"})
|
60
60
|
end
|
61
61
|
end
|
62
62
|
expect(helper.display_user_image(user, "profile_picture.image.thumb.url")).to eq(exptected_result)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poodle-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krishnaprasad Varma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kaminari
|