File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
. uniq
8
8
9
9
# Look at the *.html.haml files in the app/views/pages directory
10
- STATIC_PAGE_LAYOUTS ||= Dir . glob ( 'app/views/layouts/*.html.{erb,haml }' )
10
+ STATIC_PAGE_LAYOUTS ||= Dir . glob ( 'app/views/layouts/*.html.{erb,slim }' )
11
11
. map { |f | File . basename ( f , '.html.erb' ) }
12
- . map { |f | File . basename ( f , '.html.haml ' ) }
12
+ . map { |f | File . basename ( f , '.html.slim ' ) }
13
13
. reject { |f | f =~ /^_/ }
14
14
. sort
15
15
. uniq
Original file line number Diff line number Diff line change 18
18
current_user . follow_team! ( team )
19
19
current_user . reload
20
20
expect ( current_user . following_team? ( team ) ) . to eq ( true )
21
- post :follow , id : team . id
21
+ post :follow , id : team . id , format : :json
22
22
current_user . reload
23
23
expect ( current_user . following_team? ( team ) ) . to eq ( false )
24
24
end
You can’t perform that action at this time.
0 commit comments