Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rearranged tests.

  • Loading branch information...
commit 38be730503426cd7d7ae09e6b11ce71657df84ee 1 parent 46eca08
@mptre authored
Showing with 12 additions and 12 deletions.
  1. +12 −12 test/iphone_helpers_test.rb
View
24 test/iphone_helpers_test.rb
@@ -7,18 +7,6 @@ class IphoneHelpersTest < ActionView::TestCase
assert_equal iphone(:fullscreen), '<meta content="yes" name="apple-mobile-web-app-capable" />'
end
- test 'apple touch icon' do
- assert_equal iphone(:icon, :href => 'iphone.png'), '<link href="/images/iphone.png" rel="apple-touch-icon" />'
- end
-
- test 'apple touch icon precomposed' do
- assert_equal iphone(:icon, :href => 'iphone.png', :precomposed => true), '<link href="/images/iphone.png" rel="apple-touch-icon-precomposed" />'
- end
-
- test 'apple touch startup image' do
- assert_equal iphone(:splash, :href => 'splash.png'), '<link href="/images/splash.png" rel="apple-touch-startup-image" />'
- end
-
test 'apple mobile web app status bar style' do
assert_equal iphone(:status_bar), '<meta content="default" name="apple-mobile-web-app-status-bar-style" />'
end
@@ -31,6 +19,18 @@ class IphoneHelpersTest < ActionView::TestCase
assert_equal iphone(:status_bar, :color => 'black-translucent'), '<meta content="black-translucent" name="apple-mobile-web-app-status-bar-style" />'
end
+ test 'apple touch icon' do
+ assert_equal iphone(:icon, :href => 'iphone.png'), '<link href="/images/iphone.png" rel="apple-touch-icon" />'
+ end
+
+ test 'apple touch icon precomposed' do
+ assert_equal iphone(:icon, :href => 'iphone.png', :precomposed => true), '<link href="/images/iphone.png" rel="apple-touch-icon-precomposed" />'
+ end
+
+ test 'apple touch startup image' do
+ assert_equal iphone(:splash, :href => 'splash.png'), '<link href="/images/splash.png" rel="apple-touch-startup-image" />'
+ end
+
test 'viewport' do
assert_equal iphone(:viewport), '<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0;" name="viewport" />'
end
Please sign in to comment.
Something went wrong with that request. Please try again.