Sha256: a4f8d4890ddc7ef62fc8409dc717125d50ad3bba70a9e4fa962f564f094df5f8
Contents?: true
Size: 614 Bytes
Versions: 2
Compression:
Stored size: 614 Bytes
Contents
require 'rails_helper' module Chaskiq RSpec.describe CampaignsController, type: :controller do render_views routes { Chaskiq::Engine.routes } let(:list){ FactoryGirl.create(:chaskiq_list) } let(:subscriber){ FactoryGirl.create(:chaskiq_subscriber, list: list) } let(:campaign){ FactoryGirl.create(:chaskiq_campaign, list: list) } it "will show campaign!" do campaign response = get("show", id: campaign.id) expect(response.status).to be == 200 expect(response.body).to include "subscribe" expect(response.body).to include campaign.name end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chaskiq-0.0.3 | spec/controllers/chaskiq/campaigns_controller_spec.rb |
chaskiq-0.0.2 | spec/controllers/chaskiq/campaigns_controller_spec.rb |