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 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 string 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.
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 be empty
21
- And the "Verification code" field should be empty
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
@@ -1,9 +1,11 @@
1
1
  require "saucy"
2
2
  require "rails"
3
+ require "braintree"
3
4
 
4
5
  module Saucy
5
6
  class Engine < Rails::Engine
6
7
  config.saucy = Configuration.new
8
+ Braintree::Configuration.logger = Rails.logger
7
9
 
8
10
  {:short_date => "%x"}.each do |k, v|
9
11
  Time::DATE_FORMATS[k] = v
@@ -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")
@@ -1,5 +1,7 @@
1
1
  require 'saucy/fake_braintree'
2
2
 
3
+ Braintree::Configuration.logger = Logger.new("tmp/log")
4
+
3
5
  RSpec.configure do |config|
4
6
  config.after(:each) { FakeBraintree.clear! }
5
7
  end
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: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 5
10
- version: 0.2.5
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-12 00:00:00 -05:00
20
+ date: 2011-01-15 00:00:00 -05:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency