Skip to content

Instantly share code, notes, and snippets.

@ryanwood
Created May 27, 2010 18:28
Show Gist options
  • Save ryanwood/416159 to your computer and use it in GitHub Desktop.
Save ryanwood/416159 to your computer and use it in GitHub Desktop.
~/code/opensource/mousetrap[master]% cat spec/integration/settings.yml
# Replace user and password with your CheddarGetter credentials.
user: myaccount
password: mypass
# Go create a product in the CheddarGetter web admin interface named "mousetrap_test".
product_code: MOUSETRAP_TEST
~/code/opensource/mousetrap[master]% spec -c -fn spec/integration/smoke_test.rb
The Wrapper Gem
Mousetrap::Customer
.all
Given a few customers on CheddarGetter
When I call .all
before(:all) (FAILED - 1)
.create
When I create a customer
And I get the customer
before(:all) (FAILED - 2)
And I get the subscription
before(:all) (FAILED - 3)
When I create a customer with international card
And I get the customer
before(:all) (FAILED - 4)
And I get the subscription
before(:all) (FAILED - 5)
.destroy_all
Given a few customers on CheddarGetter
When I call .destroy_all
before(:all) (FAILED - 6)
.update
Given a customer
When I update the customer, with only customer attributes
And I get the customer
before(:all) (FAILED - 7)
When I update the customer, with customer and subscription attributes
And I get the customer
before(:all) (FAILED - 8)
And I get the subscription
before(:all) (FAILED - 9)
#cancel
Given a customer
When I cancel
And I get the customer
before(:all) (FAILED - 10)
When I resubscribe them
And I get the customer
before(:all) (FAILED - 11)
And I get the subscription
before(:all) (FAILED - 12)
#save
When I save a customer
And I get the customer
before(:all) (FAILED - 13)
When I save it again, with different attributes
And I get the customer
before(:all) (FAILED - 14)
When I update subscription information
And I get the subscription
before(:all) (FAILED - 15)
#switch_to_plan
Given an existing CheddarGetter customer
When I switch plans
And I get the customer
before(:all) (FAILED - 16)
Mousetrap::Subscription
Given a customer on CheddarGetter
When I update a subscription field
And I get the customer
before(:all) (FAILED - 17)
1)
RuntimeError in 'The Wrapper Gem Mousetrap::Customer.all Given a few customers on CheddarGetter When I call .all before(:all)'
Authentication required
./spec/integration/smoke_test.rb:92:
./spec/integration/smoke_test.rb:92:in `times'
./spec/integration/smoke_test.rb:92:
2)
RuntimeError in 'The Wrapper Gem Mousetrap::Customer.create When I create a customer And I get the customer before(:all)'
Authentication required
./spec/integration/smoke_test.rb:112:
3)
RuntimeError in 'The Wrapper Gem Mousetrap::Customer.create When I create a customer And I get the subscription before(:all)'
Authentication required
./spec/integration/smoke_test.rb:112:
4)
ArgumentError in 'The Wrapper Gem Mousetrap::Customer.create When I create a customer with international card And I get the customer before(:all)'
No such factory: alt_new_customer
./spec/integration/smoke_test.rb:121:
5)
ArgumentError in 'The Wrapper Gem Mousetrap::Customer.create When I create a customer with international card And I get the subscription before(:all)'
No such factory: alt_new_customer
./spec/integration/smoke_test.rb:121:
6)
RuntimeError in 'The Wrapper Gem Mousetrap::Customer.destroy_all Given a few customers on CheddarGetter When I call .destroy_all before(:all)'
Authentication required
./spec/integration/smoke_test.rb:133:
7)
RuntimeError in 'The Wrapper Gem Mousetrap::Customer.update Given a customer When I update the customer, with only customer attributes And I get the customer before(:all)'
Authentication required
./spec/integration/smoke_test.rb:158:
8)
RuntimeError in 'The Wrapper Gem Mousetrap::Customer.update Given a customer When I update the customer, with customer and subscription attributes And I get the customer before(:all)'
Authentication required
./spec/integration/smoke_test.rb:158:
9)
RuntimeError in 'The Wrapper Gem Mousetrap::Customer.update Given a customer When I update the customer, with customer and subscription attributes And I get the subscription before(:all)'
Authentication required
./spec/integration/smoke_test.rb:158:
10)
RuntimeError in 'The Wrapper Gem Mousetrap::Customer#cancel Given a customer When I cancel And I get the customer before(:all)'
Authentication required
./spec/integration/smoke_test.rb:232:
11)
RuntimeError in 'The Wrapper Gem Mousetrap::Customer#cancel Given a customer When I cancel And I get the customer When I resubscribe them And I get the customer before(:all)'
Authentication required
./spec/integration/smoke_test.rb:232:
12)
RuntimeError in 'The Wrapper Gem Mousetrap::Customer#cancel Given a customer When I cancel And I get the customer When I resubscribe them And I get the subscription before(:all)'
Authentication required
./spec/integration/smoke_test.rb:232:
13)
RuntimeError in 'The Wrapper Gem Mousetrap::Customer#save When I save a customer And I get the customer before(:all)'
Authentication required
./spec/integration/smoke_test.rb:273:
14)
RuntimeError in 'The Wrapper Gem Mousetrap::Customer#save When I save a customer When I save it again, with different attributes And I get the customer before(:all)'
Authentication required
./spec/integration/smoke_test.rb:273:
15)
RuntimeError in 'The Wrapper Gem Mousetrap::Customer#save When I save a customer When I update subscription information And I get the subscription before(:all)'
Authentication required
./spec/integration/smoke_test.rb:273:
16)
RuntimeError in 'The Wrapper Gem Mousetrap::Customer#switch_to_plan Given an existing CheddarGetter customer When I switch plans And I get the customer before(:all)'
Authentication required
./spec/integration/smoke_test.rb:308:
17)
RuntimeError in 'The Wrapper Gem Mousetrap::Subscription Given a customer on CheddarGetter When I update a subscription field And I get the customer before(:all)'
Authentication required
./spec/integration/smoke_test.rb:335:
Finished in 6.08234 seconds
0 examples, 17 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment