Sha256: 05465c9bd49e755fe45c4f16b252aa137d50ee402019f245f1562a7c6c8f2436
Contents?: true
Size: 700 Bytes
Versions: 36
Compression:
Stored size: 700 Bytes
Contents
require 'rails_helper' RSpec.describe PaidUp::PlansController do include_context 'plans and features' routes { PaidUp::Engine.routes } describe "GET #index" do before :each 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
36 entries across 36 versions & 1 rubygems