Sha256: 55c64213cc88fd21f6866c0ddb55b0682ea9dcb7da38c87b55c400586454dc63
Contents?: true
Size: 687 Bytes
Versions: 21
Compression:
Stored size: 687 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
21 entries across 21 versions & 1 rubygems