diff --git a/lib/locomotive/engine.rb b/lib/locomotive/engine.rb index e399e178..59421052 100644 --- a/lib/locomotive/engine.rb +++ b/lib/locomotive/engine.rb @@ -33,10 +33,5 @@ module Locomotive load "railties/tasks.rake" end - # initializer "serving fonts" do |app| - # app.middleware.insert_after Rack::Lock, '::Locomotive::Middlewares::Fonts', :path => %r{^/fonts} - # app.middleware.insert_after Rack::Lock, '::Locomotive::Middlewares::SeoTrailingSlash' - # end - end end diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb index 20abd909..680427ad 100644 --- a/spec/models/account_spec.rb +++ b/spec/models/account_spec.rb @@ -33,7 +33,7 @@ describe Account do account = Factory(:account) site_1 = Factory(:site, :memberships => [Membership.new(:account => account)]) site_2 = Factory(:site, :subdomain => 'foo', :memberships => [Membership.new(:account => account)]) - account.sites.should == [site_1, site_2] + account.reload.sites.to_a.should == [site_1, site_2] end describe 'deleting' do