We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c6313c commit fb28271Copy full SHA for fb28271
app/services/dgu/collections_service.rb
@@ -31,7 +31,7 @@ def page
31
end
32
33
def image_path
34
- "/images/collections/#{collection}.jpg"
+ "v2/collections/badge-#{collection}.png"
35
36
37
def collections_slugs
spec/services/dgu/collections_service_spec.rb
@@ -131,6 +131,13 @@
131
132
133
134
+ describe "#image_path" do
135
+ it "returns the image path for the collection" do
136
+ service = Dgu::CollectionsService.new(collection)
137
+ expect(service.image_path).to eq("v2/collections/badge-#{collection}.png")
138
+ end
139
140
+
141
describe "#previous_page" do
142
it "returns nil when on the first page" do
143
service = Dgu::CollectionsService.new(collection, first_page)
0 commit comments