test/functional/sinatra_test.rb in paper_trail-3.0.0.beta1 vs test/functional/sinatra_test.rb in paper_trail-3.0.0.rc1
- old
+ new
@@ -2,10 +2,10 @@
# require 'sinatra/main'
# --- Tests for non-modular `Sinatra::Application` style ----
class Sinatra::Application
ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => File.expand_path('../../dummy/db/test.sqlite3', __FILE__))
- register Sinatra::PaperTrail # we shouldn't actually need this line if I'm not mistaken but the tests seem to fail without it ATM
+ register PaperTrail::Sinatra # we shouldn't actually need this line if I'm not mistaken but the tests seem to fail without it ATM
get '/test' do
Widget.create!(:name => 'bar')
'Hai'
end