Sha256: 239990bf41e3e980c621368c43a8fccb1ecb788b43f56dddd17dc67e28af77d8
Contents?: true
Size: 893 Bytes
Versions: 1
Compression:
Stored size: 893 Bytes
Contents
require 'spec_helper' feature "Assign Subscription to customer", %q{ To bill my plan's subscribers As a user I want to record their plan and subscription } do let(:user) { Factory(:user) } before do sign_in user @subscription = Factory :subscription, :name => "Gold" end scenario "creating a customer and assigning a new subscription" do visit customers_path click_link "New Customer" fill_in "customer[email]", with: "john@doe.net" select 'Gold', :from => 'Subscription' click_button "Create Customer" # Customer created successfully page.should have_css(".alert.alert-success") # Subscription is listed at Customer details page.should have_content("Gold") visit subscription_path(@subscription) within("#subscribers") do page.should have_content("john@doe.net") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jackpot-0.0.3 | spec/requests/jackpot/jackpot_assign_subscription_to_customer_spec.rb |