similar to: expects with returns that returns the return value of the actual method

Displaying 20 results from an estimated 800 matches similar to: "expects with returns that returns the return value of the actual method"

2007 Jun 21
3
only checking certain parameters for a method
I''m writing a test where I only care about one of the parameters being sent to the method, does anyone think having a way to say that any value for a parameter which I don''t care about is valid? I''m thinking something like: def test_charge_is_for_10_bucks gateway = test_gateway member = Member.new member.credit_card_number = "1"
2006 Nov 20
1
Getting started with ActiveMerchant & new Ecommerce book
Hi there I''ve got a copy of the ''Beginning Ruby on Rails Ecommerce'' book and am trying to integrate ActiveMerchant into my app. My order.rb file has the line: ''include ActiveMerchant::Billing'' per the book. My Order model also has, amongst other things, the following validation: '' validates_inclusion_of :billing_country, :in =>
2008 Apr 25
2
Can't start script/console, but can start webrick
I have this app on other computers and it works fine. On my laptop I was running instant rails, but have scrapped it. My error is: C:\data\0315_FitWitWeb>ruby script/console Loading development environment (Rails 2.0.2) C:/data/0315_FitWitWeb/config/environment.rb:11:in `require'': no such file to lo ad -- active_merchant (LoadError) from
2009 Sep 16
2
Active Merchant Error
Hello friends, I m using Active Merchant(version = 1.4.2) gem. in billing calculator i m require ''active_merchant'' and when i m open the page it is throw error such "no such file to load -- active_merchant". Can you guyz tell me how can i resolve this problem ... Waiting for every possible answer -- Posted via http://www.ruby-forum.com/.
2007 Oct 13
4
Chapter 9
Hello, I''m currently stunk on this issue for few days and I do not know how to get it fixed. The system always raises this error message : order is closed and here is my order.rb: class Order < ActiveRecord::Base include ActiveMerchant::Billing before_validation :set_status attr_protected :id, :customer_ip, :status, :error_message, :updated_at, :created_at attr_accessor
2011 Feb 19
1
undefined method `map' for nil:NilClass for rails 2.3.2
Hai guys! When i try to do rake gems:install and rake gems:refresh_specs in my app below error is occurred. please give some solution for this. config.gem: Unpacked gem authlogic-2.1.3 in vendor/gems has no specification file. Run ''rake gems:refresh_specs'' to fix this. rake aborted! undefined method `map'' for nil:NilClass enivorment.rb RAILS_GEM_VERSION =
2009 Mar 13
2
date_select and HTML options?
I have the following code, but can''t seem to get the class attribute to show up in the generated select elements. I saw something about a bug/patch. However, as am still learning RoR I didn''t want to jump to conclusions. Anyone see anything wrong: <%= f.date_select :expiration_date, :order => [:month, :year], :discard_day => true, :class => "dtfld" %>
2006 Jul 17
1
payment or active merchant
Anyone used both? Im looking into the pros and cons of there two Payment of course supports more than just credit cards One query that comes to mind is why doesn''t active_merchant just use payment Would keep things nice and dry -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 Jan 27
1
recent activemerchant examples needed or perhaps another solution
Hi, I have a reeally big problem with understanding how to use ActiveMerchant, Perhaps someone would point me to a different solution to my problem. I need to build a little web shop which will be based in the UK, and my customer wants to use PayPal Express Checkout, because there''s no monthly fee. So far I had only problems with ActiveMerchant examples because: 1) they are way too
2011 Mar 19
0
Problems with SSL dependent gems OAuth2 & ActiveMerchant
Hello all, My application uses the OAuth2 gem (0.1.1) to connect to Facebook, and the ActiveMerchant gem (1.12.0) to connect to PayPal. Under what is the current Rails/Ruby distribution, both of these gems throw the following OpenSSL::SSL::SSLError when used: * SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed I did some digging, and found two
2011 Feb 02
1
newbie: paypal + line items
hi, using activemerchant + rails the first time. how can i send my line items + descriptions etc over to paypal so that the user can review the items? purchase_options{ :items => [ { :name => "Tickets", :quantity => 22, :description => "Tickets for 232323", :amount => 1211221 },
2006 May 30
2
ActiveMerchant
Is anyone using ActiveMerchant currently? I''ve seen it recommended on this list several times, but it seems kind of buggy and incomplete and I''m having trouble getting it to work. >From the example at http://home.leetsoft.com/am/, I''ve tried: gateway = ActiveMerchant::Base.gateway(:authorized_net) response = gateway.capture(1000, creditcard) ..but it
2006 Sep 11
0
ActiveMerchant Paypal Pro Support
How is ActiveMerchant''s Paypal Pro support? I am migrating a client''s site to Rails that uses Paypal Pro and they have been pretty happy with it (and know how to use Paypal''s website). I tried first setting up the PayPal plugin directly, but ran into some issues and then I noticed that ActiveMerchant has PayPal Pro, but its labeled "testing" and
2010 Mar 22
2
ActiveMerchant, Authorize.net and Email Receipts
I''ve posted this on RailsForum.com and in the ActiveMerchant talk group, and haven''t received an answer, so I figure I''ll try here. Hello. I''ve been searching for information on this for a while, but my google fu is evidently weak--hardly anyone even talks about email receipts re: ActiveMerchant, much less my specific problem. In any case, I have a client whose
2008 Aug 24
2
config.after_initialize and development mode
Hi, I''m using activemerchant and setting up a class variable using config.after_initialize. It works great for the first request, but then the variable is nil. config.after_initialize do ActiveMerchant::Billing::Base.mode = :test OrderTransaction.gateway = ActiveMerchant::Billing::PaypalGateway.new(...) end I''m assuming this is is due to the model reloading after each
2009 Apr 24
2
plugin loading
I just updated from Rails 1.2.0 to Rails 2.3.2 and none of the app plugins seem to load. The server starts without any problems, but none of the plugin code is available. Help! -- Posted via http://www.ruby-forum.com/.
2006 Nov 01
1
Referencing a plugin in a spec
I am writing some specs that use ActiveMerchant to talk to a cc provider. When I try to "include ActiveMerchant::Billing" in my spec, it tells me it can''t find the plugin: ./activesupport/lib/active_support/dependencies.rb:123:in `const_missing'': uninitialized constant ActiveMerchant (NameError) Do I need to explicity require the main plugin file? Thanks, Mike Pence
2008 Oct 16
0
[Announcement] Billing Module for your SaaS web application is here: ServiceMerchant
[Announcement] Billing Module for your SaaS web application is here: ServiceMerchant == In two sentences ServiceMerchant is open-source library, developed in Ruby, which takes care of recurring billings and subscriptions of your SaaS application. The library sits on top of well known library ActiveMerchant and therefore gives you the variety of choice among payment providers. == In more details
2011 Apr 20
1
ActiveMerchant with Amazon's FPS
Hi, I want to integrate Amazon''s FPS service using Activemerchant. I want to know that activemerchant support that? and if yes, then can you please suggest any site to integrate Amazon''s FPS? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2008 Feb 28
2
random exception driving me crazy: SecurityError (Insecure: can't modify array)
Hi all, I''m running into a very strange but incredibly annoying problem that I just can''t seem to solve. The exception is occurring from a seemingly innocuous line in my code, a simple ''logger.warn("some debug information")''. The backtrace follows: SecurityError (Insecure: can''t modify array)