Skip to content

Commit

Permalink
Fixed a broken test caused by the last test that I added.
Browse files Browse the repository at this point in the history
  • Loading branch information
schof committed Mar 22, 2010
1 parent 07c4bdc commit a5d2fd1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/unit/creditcard_test.rb
@@ -1,12 +1,14 @@
require 'test_helper'

class CreditcardTest < ActiveSupport::TestCase
fixtures :payment_methods

context Creditcard do
# NOTE: We want to test a real creditcard so we can't use the factory directly since it uses a hacked model to make
# testing easier.
setup { @creditcard = Creditcard.new(Factory.attributes_for(:creditcard)) }
setup do
Gateway.stub!(:current, :return => Gateway::Bogus.new)
@creditcard = Creditcard.new(Factory.attributes_for(:creditcard))
end

context "save when configured to store credit card info" do
setup do
Expand Down

0 comments on commit a5d2fd1

Please sign in to comment.