Permalink
Browse files

small fixups to collaborate with hassox

  • Loading branch information...
1 parent f439442 commit b1966cd93f32da32bf6f9cbffdb8e6495cff7f2b @atmos committed Jan 15, 2009
Showing with 11 additions and 8 deletions.
  1. +5 −4 README
  2. +5 −3 config/init.rb
  3. +1 −1 spec/spec_helper.rb
View
9 README
@@ -18,6 +18,11 @@ Requirements (UNIX)
% thor merb:gem:install
% cp config/braintree.yml-example config/braintree.yml
% cp config/database.yml-example config/database.yml
+% git clone git://github.com/atmos/braintree_transparent_redirect_slice.git
+% cd braintree_transparent_redirect_slice
+% rake repackage
+% cp pkg/*.gem ../gems/cache
+% thor merb:gem:install
% bin/rake
On Localhost
@@ -35,7 +40,3 @@ http://dev.braintreepaymentsolutions.com/test-transaction/
Videos(Worth Watching)
----------------------
http://braintreepaymentsolutions.com/pci-dss-compliance/
-
-Guidance
---------
-http://github.com/braintree/braintree-example-rails/tree/master
View
8 config/init.rb
@@ -7,17 +7,19 @@
use_orm :datamapper
use_test :rspec
use_template_engine :haml
-
+
Merb::Config.use do |c|
c[:use_mutex] = false
c[:session_store] = 'cookie' # can also be 'memory', 'memcache', 'container', 'datamapper
-
+
# cookie session store configuration
c[:session_secret_key] = 'cdd210aa9453eb752f5df31c601fcce419b8b7ad' # required for cookie session store
c[:session_id_key] = '_merb_braintree_tr_example_session_id' # cookie session id key, defaults to "_session_id"
end
-
+
Merb::BootLoader.before_app_loads do
+ BraintreeTransparentRedirectSlice.config[:layout] = :application
+ pp BraintreeTransparentRedirectSlice.config
# This will get executed after dependencies have been loaded but before your app's classes have loaded.
end
View
2 spec/spec_helper.rb
@@ -55,5 +55,5 @@ def quentin_form_info
quentin_form_info.merge({'type'=>'sale', 'payment'=>'creditcard'}))
response = request("/credit_cards/new_response", :params => api_response.params)
- response.should redirect_to('/')
+ response.should redirect_to('/credit_cards')
end

0 comments on commit b1966cd

Please sign in to comment.