the account_spec failed randomly + remove useless puts
This commit is contained in:
parent
5e8eac53d4
commit
e304d5aa98
@ -33,10 +33,5 @@ module Locomotive
|
|||||||
load "railties/tasks.rake"
|
load "railties/tasks.rake"
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
@ -33,7 +33,7 @@ describe Account do
|
|||||||
account = Factory(:account)
|
account = Factory(:account)
|
||||||
site_1 = Factory(:site, :memberships => [Membership.new(:account => account)])
|
site_1 = Factory(:site, :memberships => [Membership.new(:account => account)])
|
||||||
site_2 = Factory(:site, :subdomain => 'foo', :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
|
end
|
||||||
|
|
||||||
describe 'deleting' do
|
describe 'deleting' do
|
||||||
|
Loading…
Reference in New Issue
Block a user