require File.dirname(__FILE__) + "/../../../spec_helper"
#
# Test for Shop Line Item Tags
#
describe Shop::Tags::Card do
dataset :pages
before :all do
@page = pages(:home)
end
it 'should describe these tags' do
Shop::Tags::Card.tags.sort.should == [
'form:card',
'form:card:type',
'form:card:month',
'form:card:year'].sort
end
describe 'form:card:type' do
context 'all cards' do
it 'should output the card types' do
tag = %{