Sha256: ed45d529e848626f3da97968b2d333a9d874bccef111e01d31a5478dc00da678
Contents?: true
Size: 722 Bytes
Versions: 15
Compression:
Stored size: 722 Bytes
Contents
# frozen_string_literal: true 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_successful } 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
15 entries across 15 versions & 1 rubygems