We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e7b7b4 commit a80344eCopy full SHA for a80344e
config/initializers/pages.rb
@@ -7,9 +7,9 @@
7
.uniq
8
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}')
+STATIC_PAGE_LAYOUTS ||= Dir.glob('app/views/layouts/*.html.{erb,slim}')
11
.map { |f| File.basename(f, '.html.erb') }
12
- .map { |f| File.basename(f, '.html.haml') }
+ .map { |f| File.basename(f, '.html.slim') }
13
.reject{ |f| f =~ /^_/ }
14
.sort
15
spec/controllers/teams_controller_spec.rb
@@ -18,7 +18,7 @@
18
current_user.follow_team!(team)
19
current_user.reload
20
expect(current_user.following_team?(team)).to eq(true)
21
- post :follow, id: team.id
+ post :follow, id: team.id , format: :json
22
23
expect(current_user.following_team?(team)).to eq(false)
24
end
0 commit comments