Sha256: 72959eca20a8748de998ac5409c0328205cd824ec86d9987906413ae6df15a91
Contents?: true
Size: 688 Bytes
Versions: 16
Compression:
Stored size: 688 Bytes
Contents
require 'rails_helper' RSpec.describe PaidUp::PlansController do include_context 'loaded site' routes { PaidUp::Engine.routes } describe 'GET #index' do before do get :index end context 'responds successfully with an HTTP 200 status code' do subject { response } it { should be_success } it { should have_http_status(200) } end context 'renders the index template' do subject { response } it { should render_template('index') } end context 'loads all of the plans into @plans' do subject { assigns(:plans) } it { should eq(PaidUp::Plan.subscribable) } it { should have(4).items } end end end
Version data entries
16 entries across 16 versions & 1 rubygems