diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index e00f68ae0..22916a7fa 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -60,9 +60,9 @@ def favicon
"favicon#{icon_suffix}.ico"
end
- # Return the appropriate apple icon for the current environment
- # @return [String] The path to the apple icon
- def apple_icon
- "apple-icon#{icon_suffix}.png"
+ # Return the appropriate apple-touch-icon for the current environment
+ # @return [String] The path to the apple-touch-icon
+ def apple_touch_icon
+ "apple-touch-icon#{icon_suffix}.png"
end
end
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 32e685b58..d7eff1795 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -21,7 +21,7 @@
<% end %>
-
+
diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb
index 1bb169ed2..4b6658db1 100644
--- a/spec/helpers/application_helper_spec.rb
+++ b/spec/helpers/application_helper_spec.rb
@@ -32,32 +32,32 @@
end
end
- describe '#apple_icon' do
- subject(:apple_icon) { helper.apple_icon }
+ describe '#apple_touch_icon' do
+ subject(:apple_touch_icon) { helper.apple_touch_icon }
- it 'returns the apple icon path for the production environment' do
+ it 'returns the apple-touch-icon path for the production environment' do
allow(Rails).to receive(:env).and_return('production')
- expect(apple_icon).to eq('apple-icon.png')
+ expect(apple_touch_icon).to eq('apple-touch-icon.png')
end
- it 'returns the apple icon path for the training environment' do
+ it 'returns the apple-touch-icon path for the training environment' do
allow(Rails).to receive(:env).and_return('training')
- expect(apple_icon).to eq('apple-icon-training.png')
+ expect(apple_touch_icon).to eq('apple-touch-icon-training.png')
end
- it 'returns the apple icon path for the staging environment' do
+ it 'returns the apple-touch-icon path for the staging environment' do
allow(Rails).to receive(:env).and_return('staging')
- expect(apple_icon).to eq('apple-icon-staging.png')
+ expect(apple_touch_icon).to eq('apple-touch-icon-staging.png')
end
- it 'returns the apple icon path for the development environment' do
+ it 'returns the apple-touch-icon path for the development environment' do
allow(Rails).to receive(:env).and_return('development')
- expect(apple_icon).to eq('apple-icon-development.png')
+ expect(apple_touch_icon).to eq('apple-touch-icon-development.png')
end
- it 'returns the apple icon path for an unknown environment' do
+ it 'returns the apple-touch-icon path for an unknown environment' do
allow(Rails).to receive(:env).and_return('unknown')
- expect(apple_icon).to eq('apple-icon-development.png')
+ expect(apple_touch_icon).to eq('apple-touch-icon-development.png')
end
end
end