spec/spec_helper.rb in moo_moo-0.2.0 vs spec/spec_helper.rb in moo_moo-0.3.0

- old
+ new

@@ -53,19 +53,19 @@ RSpec.configure do |c| c.extend VCR::RSpec::Macros c.before(:each) do MooMoo.configure do |config| if live_test? - config.host = ENV['OPENSRS_TEST_URL'] if ENV['OPENSRS_TEST_URL'] - config.key = ENV['OPENSRS_TEST_KEY'] || raise(ArgumentError, "OPENSRS_TEST_KEY is required") - config.user = ENV['OPENSRS_TEST_USER'] || raise(ArgumentError, "OPENSRS_TEST_USER is required") - config.pass = ENV['OPENSRS_TEST_PASS'] || raise(ArgumentError, "OPENSRS_TEST_PASS is required") + config.host = ENV['OPENSRS_TEST_URL'] if ENV['OPENSRS_TEST_URL'] + config.key = ENV['OPENSRS_TEST_KEY'] || raise(ArgumentError, "OPENSRS_TEST_KEY is required") + config.username = ENV['OPENSRS_TEST_USER'] || raise(ArgumentError, "OPENSRS_TEST_USER is required") + config.password = ENV['OPENSRS_TEST_PASS'] || raise(ArgumentError, "OPENSRS_TEST_PASS is required") else - config.host = "testhost.com" - config.key = "testkey" - config.user = "testuser" - config.pass = "testpass" + config.host = "testhost.com" + config.key = "testkey" + config.username = "testuser" + config.password = "testpass" end end end end @@ -85,10 +85,10 @@ action_name = args[2] || method_name match do |object| parameters = {:the => :params, :cookie => "thecookie"} object.should_receive(:run_command). - with(action_name, object_name, parameters, "thecookie"). + with(action_name, object_name, parameters). and_return("theresult") object.send(method_name, parameters) == "theresult" end \ No newline at end of file