saucy 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/generators/saucy/features/templates/features/manage_billing.feature +2 -2
- data/lib/generators/saucy/features/templates/step_definitions/html_steps.rb +0 -12
- data/lib/saucy/engine.rb +2 -0
- data/lib/saucy/fake_braintree.rb +1 -0
- data/spec/support/braintree.rb +2 -0
- metadata +4 -4
data/README.md
CHANGED
@@ -32,7 +32,7 @@ You will want to custom the from email address on billing emails:
|
|
32
32
|
|
33
33
|
Saucy::Configuration.mailer_sender = "billingemail@example.com"
|
34
34
|
|
35
|
-
In addition, there are a number of
|
35
|
+
In addition, there are a number of strings such as application name, support url, etc. that are provided and customized with i18n translations. You can customize these in your app, and you can see what they are by looking at config/locales/en.yml in saucy.
|
36
36
|
|
37
37
|
There is a `saucy:update_subscriptions` rake task which should be run on a regular basis to send receipts and payment processing problem emails.
|
38
38
|
|
@@ -17,8 +17,8 @@ Feature: Manage Billing
|
|
17
17
|
|
18
18
|
Then the "Cardholder name" field should contain "Joe Smith"
|
19
19
|
And the "Billing email" field should contain "jsmith@example.com"
|
20
|
-
And the "Card number" field should
|
21
|
-
And the "Verification code" field should
|
20
|
+
And the "Card number" field should contain "^$"
|
21
|
+
And the "Verification code" field should contain "^$"
|
22
22
|
And the "Expiration month" field should contain "01"
|
23
23
|
And the "Expiration year" field should contain "2015"
|
24
24
|
|
@@ -12,18 +12,6 @@ Then /^"([^"]*)" should have the error "([^"]*)"$/ do |field, error|
|
|
12
12
|
field.find(:xpath, "following-sibling::p[@class='inline-errors'][contains(text(), '#{error}')]").should_not be_nil
|
13
13
|
end
|
14
14
|
|
15
|
-
Then /^the "([^"]*)" field(?: within "([^"]*)")? should be empty$/ do |field, selector|
|
16
|
-
with_scope(selector) do
|
17
|
-
field = find_field(field)
|
18
|
-
field_value = (field.tag_name == 'textarea') ? field.text : field.value
|
19
|
-
if field_value.respond_to? :should
|
20
|
-
field_value.should be_nil
|
21
|
-
else
|
22
|
-
assert_nil(field_value)
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
15
|
Then /^I there should be a link to the help site$/ do
|
28
16
|
page.should have_css("a[href*='help.example.com']")
|
29
17
|
end
|
data/lib/saucy/engine.rb
CHANGED
data/lib/saucy/fake_braintree.rb
CHANGED
@@ -41,6 +41,7 @@ ShamRack.at("www.braintreegateway.com", 443).sinatra do
|
|
41
41
|
set :show_exceptions, false
|
42
42
|
set :dump_errors, true
|
43
43
|
set :raise_errors, true
|
44
|
+
disable :logging
|
44
45
|
|
45
46
|
post "/merchants/:merchant_id/customers" do
|
46
47
|
customer = Hash.from_xml(request.body).delete("customer")
|
data/spec/support/braintree.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saucy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 6
|
10
|
+
version: 0.2.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- thoughtbot, inc.
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-01-
|
20
|
+
date: 2011-01-15 00:00:00 -05:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|