Skip to content

Commit a80344e

Browse files
committed
fix more tests
1 parent 8e7b7b4 commit a80344e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/initializers/pages.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
.uniq
88

99
# 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}')
1111
.map { |f| File.basename(f, '.html.erb') }
12-
.map { |f| File.basename(f, '.html.haml') }
12+
.map { |f| File.basename(f, '.html.slim') }
1313
.reject{ |f| f =~ /^_/ }
1414
.sort
1515
.uniq

spec/controllers/teams_controller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
current_user.follow_team!(team)
1919
current_user.reload
2020
expect(current_user.following_team?(team)).to eq(true)
21-
post :follow, id: team.id
21+
post :follow, id: team.id , format: :json
2222
current_user.reload
2323
expect(current_user.following_team?(team)).to eq(false)
2424
end

0 commit comments

Comments
 (0)