diff --git a/lib/sidetiq/views/locks.erb b/lib/sidetiq/views/locks.erb index de15b8f..78d5765 100644 --- a/lib/sidetiq/views/locks.erb +++ b/lib/sidetiq/views/locks.erb @@ -36,6 +36,7 @@
" method="post"> + <%= csrf_tag %>
diff --git a/lib/sidetiq/views/sidetiq.erb b/lib/sidetiq/views/sidetiq.erb index 10b8cde..49e21dd 100644 --- a/lib/sidetiq/views/sidetiq.erb +++ b/lib/sidetiq/views/sidetiq.erb @@ -37,6 +37,7 @@
" method="post"> + <%= csrf_tag %>
diff --git a/test/helper.rb b/test/helper.rb index 867b19d..1990a32 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,4 +1,5 @@ -ENV['RACK_ENV'] = 'test' +ENV['RACK_ENV'] ||= 'test' + if RUBY_PLATFORM != "java" require 'coveralls' Coveralls.wear!