History

Refactor app size/theme methods

Thibaut committed 11 years ago

Commit b3c569b1 parent e2b86744 files · +22 −14Browse files

Showing the changes to test (1 of 4 files). Show all

Unified · Split

test/app_test.rb+4−4
@@ -69,17 +69,17 @@ class AppTest < MiniTest::Spec · 68 unmodified lines
6969 assert_includes last_response.body, '/html/index.json'
7070 end
7171
72− it "includes has the word 'light' by default" do
72+ it "has the word 'default' when no 'dark' cookie is set" do
7373 get '/manifest.appcache'
74− assert_includes last_response.body, '# light'
74+ assert_includes last_response.body, '# default'
7575 refute_includes last_response.body, '# dark'
7676 end
7777
78− it "includes has the word 'dark' when the cookie is set" do
78+ it "has the word 'dark' when the cookie is set" do
7979 set_cookie('dark=1')
8080 get '/manifest.appcache'
8181 assert_includes last_response.body, '# dark'
82− refute_includes last_response.body, '# light'
82+ refute_includes last_response.body, '# default'
8383 end
8484
8585 it "sets default size" do

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t