Sha256: b37748ab0f910891b60571df1ce6c120fe73988e7891ce97017dbb2239adadb9

Contents?: true

Size: 584 Bytes

Versions: 4

Compression:

Stored size: 584 Bytes

Contents

require 'spec_helper'

describe Koudoku::SubscriptionsController do
  describe 'when customer is signed in' do
    before do
      @customer = Customer.create(email: 'andrew.culver@gmail.com')
      ApplicationController.any_instance.stub(:current_customer).and_return(@customer)
    end
    it 'works' do
      get :index, use_route: 'koudoku'
    end
  end
  describe 'when customer is not signed in' do
    before do
      ApplicationController.any_instance.stub(:current_customer).and_return(nil)
    end
    it 'works' do
      get :index, use_route: 'koudoku'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
koudoku-1.0.0 spec/controllers/koudoku/subscriptions_controller.rb
koudoku-0.0.11 spec/controllers/koudoku/subscriptions_controller.rb
koudoku-0.0.10 spec/controllers/koudoku/subscriptions_controller.rb
koudoku-0.0.9 spec/controllers/koudoku/subscriptions_controller.rb