spec/mousetrap/customer_spec.rb in cameroncox-mousetrap-0.6.1 vs spec/mousetrap/customer_spec.rb in cameroncox-mousetrap-0.6.2

- old
+ new

@@ -8,17 +8,19 @@ :firstName => customer.first_name, :lastName => customer.last_name, :email => customer.email, :company => customer.company, :code => customer.code, + :notes => customer.notes, :subscription => { :planCode => customer.subscription.plan_code, :ccFirstName => customer.subscription.billing_first_name, :ccLastName => customer.subscription.billing_last_name, :ccNumber => customer.subscription.credit_card_number, :ccExpMonth => customer.subscription.credit_card_expiration_month, :ccExpYear => customer.subscription.credit_card_expiration_year, + :ccCardCode => customer.subscription.credit_card_code, :ccZip => customer.subscription.billing_zip_code, :ccCountry => customer.subscription.billing_country, :ccAddress => customer.subscription.billing_address, :ccCity => customer.subscription.billing_city, :ccState => customer.subscription.billing_state @@ -91,11 +93,12 @@ subject do Mousetrap::Customer.new \ :first_name => 'Jon', :last_name => 'Larkowski', :email => 'lark@example.com', - :code => 'asfkhw0' + :code => 'asfkhw0', + :notes => 'Lorem ipsum dolor' end it { should be_instance_of(Mousetrap::Customer) } it { should be_new_record } @@ -112,9 +115,13 @@ subject.email.should == 'lark@example.com' end it 'code' do subject.code.should == 'asfkhw0' + end + + it 'notes' do + subject.notes.should == 'Lorem ipsum dolor' end end end describe '.update' do