spec/controllers/spina/admin/conferences/blog/posts_controller_spec.rb in spina-admin-conferences-blog-0.1.4 vs spec/controllers/spina/admin/conferences/blog/posts_controller_spec.rb in spina-admin-conferences-blog-0.2.0
- old
+ new
@@ -141,9 +141,10 @@
it { expect { subject }.to change(Spina::Admin::Conferences::Blog::Post, :count).by(-1) }
end
end
context 'signed out' do
+ before { Spina::Account.create name: 'My Website', theme: 'default' }
describe 'GET #index' do
subject { get :index }
it { is_expected.to have_http_status :redirect }
it { is_expected.to_not render_template :index }
end