Sha256: 6d918e257ce4a07a74704ec55e279c794702eb6e4216f3714c409b39bba23f6e
Contents?: true
Size: 1.63 KB
Versions: 13
Compression:
Stored size: 1.63 KB
Contents
describe AmaLayout::NavigationHelper do subject { FactoryGirl.create(:user) } describe '#navigation' do before(:each) do subject.class.include(AmaLayout::NavigationHelper).new end context 'non-member' do subject { FactoryGirl.create(:user, :non_member) } it 'shows non-member sidebar menu' do expect(subject.navigation).to eq 'non-member' end end context 'member' do it 'shows member sidebar menu' do expect(subject.navigation).to eq 'member' end end context 'member with accr' do subject { FactoryGirl.create(:user, :with_accr) } it 'shows member sidebar menu' do expect(subject.navigation).to eq 'member' end end context 'member with mpp' do subject { FactoryGirl.create(:user, :with_mpp) } it 'shows member sidebar menu' do expect(subject.navigation).to eq 'member' end end context 'member in-renewal' do subject { FactoryGirl.create(:user, :in_renewal) } it 'shows in-renewal sidebar menu' do expect(subject.navigation).to eq 'member-in-renewal' end end context 'member in-renewal late' do subject { FactoryGirl.create(:user, :in_renewal_late) } it 'shows in-renewal-late sidebar menu' do expect(subject.navigation).to eq 'member-in-renewal-late' end end context 'member with outstanding balance' do subject { FactoryGirl.create(:user, :outstanding_balance) } it 'shows member-with-outstanding-balance sidebar menu' do expect(subject.navigation).to eq 'member-with-outstanding-balance' end end end end
Version data entries
13 entries across 13 versions & 1 rubygems