Sha256: 11842c0b1697d4b975a5fe561b9e8a67e373b4d87de55b973bedc2aa795ba25d

Contents?: true

Size: 521 Bytes

Versions: 1

Compression:

Stored size: 521 Bytes

Contents

require 'spec_helper'

describe Jackpot::CustomersHelper do
  describe "#subscription_name_when_available" do
    it "returns '-' when there is no subscription available" do
      customer = FactoryGirl.build(:customer)
      helper.subscription_name_when_available(customer).should == "-"
    end 

    it "returns the subscription name when it is available" do
      customer = FactoryGirl.build(:customer_with_subscription)
      helper.subscription_name_when_available(customer).should == "Gold"
    end 

  end 
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jackpot-0.0.3 spec/helpers/jackpot/customers_helper_spec.rb