Displaying 20 results from an estimated 100000 matches similar to: "How to mock block"
2007 Dec 01
0
mock feed
Hello generous coders,
I''m having difficulty getting a couple of tests to pass.
I have an address model which takes an address and with a callback on save
and update passes the address to google''s
geocoding service. The returned XML is parsed and saved to the address
object:
protected
def geocode_address
key = "mykey"
url =
2007 Jun 10
0
pb when posting to an action "render_text body, :status => 400"
Hi,
I''m trying to do a little openid-server in rails.
I encounter a very strange problem for me, you can see all the story in the
openid mailing-list :
http://lists.openidenabled.com/pipermail/dev/2007-May/000666.html
http://lists.openidenabled.com/pipermail/dev/2007-June/000700.html
In short, the problem is :
the server has to do a "render_text body, :status => 400"
2013 Jan 10
0
TCPSocket in controller action
Hi,
in order to stream a file I am making use of TCPSocket. Unfortunately I
dont receive contents when in use the tcpsocket in a rails controller
action while it is working on console.
url = "http://www.google.de"
version = request.env[''HTTP_VERSION'']
verb = request.env[''REQUEST_METHOD'']
# url =
2006 Apr 04
1
integration tests - 1.1
I?m using the new 1.1 integration test facility? I?m trying to write a
test that sees if a controller redirects to the correct place and
preserves the query string.
Here?s the code:
class LoginRedirectTest < ActionController::IntegrationTest
def test_non_admin_auth
request_uri = "/datafeed/event/report?blah=blah"
get(request_uri)
follow_redirect!
2016 Aug 04
2
curl build system is broken and so is mock
I'm having a major frustration with curl.
When building curl, if libssl.so.10 is present the curl binary WILL link
against it.
If curl is configured with an ssl option - the library WILL link against it.
If you change the curl configuration options to use a different TLS
library (e.g. nss like CentOS does) the curl binary and library will
still link against the OpenSSL library.
2008 Sep 04
0
ActiveResource testing
Hi, I''m trying to make some good testing on active resources, but I''ve
some trouble with the *post* method.
Basically this is my mock, where I set the POST verb and the expected
URI.
ActiveResource::HttpMock.respond_to do |mock|
mock.post "/locations/buildings.xml?description=new-
description&name=new-name", {}, @variable, 201
end
Now, if I call the post
2006 Aug 02
0
Simply RESTful deletion
Evening all! I''m playing around with the new Simply RESTful plugin, and
I''ve got a question about the *_url methods.
>From what I understand, given a Page model, there are three _url methods
provided:
- page_url
- new_page_url
- edit_page_url
I''m a bit disturbed that there are only three, but that aside...
To delete a resource, I would say:
2007 Jan 23
0
[1.0.1] rubygems is a bug
heres a summary of the hassles i ran into when upgrading to 1.0.1, in case they occur to anyone else:
(first try)
gem update mongrel (1) Y (2) y y y (or thereabouts)
..everything appears to go fine. but mongy is giving _weird_ errors like this:
Mon Jan 22 21:45:36 -0500 2007: ERROR: undefined method `request_uri'' for #<URI::Generic:0x157000da1da0 URL:/>
Mon Jan 22 21:50:11 -0500
2020 Aug 24
0
Mock config error
On Aug 24, 2020, at 16:48, me at tdiehl.org wrote:
>
> Also, I am trying to add a dist tag to rpms that I build in mock.
> In the epel-7 configs I do something like the following:
> config_opts['macros']['%dist'] = '.el7.tnt' to get a dist tag on the
> rpms. In epel/centos 8 this does not work.
>
> If I run "mock --debug-config
2014 Jan 15
1
Mock and Mock again
Question: If I use mock to build package rpmA from tarballA but rpmA has a
dependency that can only be satisfied by package rpmB which must also be built
from tarballB then how does the rpmB built from the tarballB get pulled into
mock when building rpmA?
I am trying to build httpd-2.4.7 from Apache and that needs apr-devel and
apr-util-devel > 1.4. I can build apr and apr-utils in mock but
2006 Dec 11
2
Does mongrel look at the Rails page cache?
Hi all. I''m trying to skip the Rails page cache if the user is logged
in:
---
# Rewrite index to check for static
RewriteCond %{HTTP_COOKIE} !^.*logged_in=yes.*$
RewriteRule ^/$ /index.html [QSA]
# Rewrite to check for Rails cached page
RewriteCond %{HTTP_COOKIE} !^.*logged_in=yes.*$
RewriteRule ^([^.]+)$ $1.html [QSA]
# Redirect all non-static requests to cluster
RewriteCond
2016 Aug 04
4
curl build system is broken and so is mock
On 08/03/2016 05:33 PM, Thomas Eriksson wrote:
> On 08/03/2016 05:23 PM, Alice Wonder wrote:
>> On 08/03/2016 05:20 PM, Alice Wonder wrote:
>>> On 08/03/2016 05:11 PM, Alice Wonder wrote:
>>>> I'm having a major frustration with curl.
>>>>
>>>> When building curl, if libssl.so.10 is present the curl binary WILL link
>>>> against
2020 Aug 25
1
Mock config error
On 25/08/20 11:27 am, Jonathan Billings wrote:
> On Aug 24, 2020, at 16:48, me at tdiehl.org wrote:
>>
>> Also, I am trying to add a dist tag to rpms that I build in mock.
>> In the epel-7 configs I do something like the following:
>> config_opts['macros']['%dist'] = '.el7.tnt' to get a dist tag on the
>> rpms. In epel/centos 8 this does not
2006 Sep 01
3
Anyone seeing mock breakage after updating to 4.4?
Morning,
somehow the upgrade to 4.4 broke mock on my system:
| [angenenr at shutdown SPECS]$mock -r c3-i386 /home/angenenr/redhat/SRPMS/apache-ssl-2.8.28-2el4.src.rpm
| init
| clean
| prep
| This may take a while
| Could not find useradd in chroot, maybe the install failed?
Nope, it's not the
config_opts['chroot_setup_cmd'] = 'groupinstall build'
issue, as I'm still
2020 Aug 24
2
Mock config error
Hi Jonathan,
On Sun, 23 Aug 2020, Jonathan Billings wrote:
> On Aug 23, 2020, at 12:07, me at tdiehl.org wrote:
>>
>> ?Hi,
>>
>> I am trying to create a mock configuration file that points to my local dnf repo.
>> I have the following in the mock config template:
>>
>> [local-repo]
>> name=my-Local
>>
2010 May 03
1
Mock Shell Arch Command
I've successfully rebuilt Red Hat EL PHP 5.2.10 RPMs using mock on a
CentOS 5.4 i386. I wanted to be able to build both x86_64 and i386
versions so I reinstalled my builder system with CentOS 5.4 x86_64.
Now I can build the PHP RPM successful for x86_64, but i386 fails with
the following during configure
/usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64: command not found
For the
2013 Sep 11
2
Re: Help needed in simulating libvirt
Hi Eric,
Thanks for your response.
I like to know how test driver works.
In the libvirt.org for test driver it is mentioned as "It can start with a
pre-configured default config, or be given a path to an alternate config".
Is the config is an xml file where we mentioned some dummy data so that the
test driver will return it as response. If yes then where can I find this
dummy file?
As
2007 Apr 11
0
Fwd: [ mocha-Bugs-6416 ] Mock objects shouldn''t define #to_s
---------- Forwarded message ----------
From: noreply at rubyforge.org <noreply at rubyforge.org>
Date: 11-Apr-2007 15:07
Subject: [ mocha-Bugs-6416 ] Mock objects shouldn''t define #to_s
To: noreply at rubyforge.org
Bugs item #6416, was opened at 2006-10-31 15:34
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7477&aid=6416&group_id=1917
2017 Dec 21
0
Certified Asterisk 13.18-cert1 Now Available
The Asterisk Development Team would like to announce the release of Certified Asterisk 13.18-cert1.
This release is available for immediate download at
http://downloads.asterisk.org/pub/telephony/certified-asterisk
The release of Certified Asterisk 13.18-cert1 resolves several issues reported by the
community and would have not been possible without your participation.
Thank you!
The following
2013 Sep 10
0
Re: Help needed in simulating libvirt
On 09/10/2013 12:03 PM, Arun Viswanath wrote:
> Hi All,
> I'm need to simulate libvirt API's say to mock the libvirt API
> responses. (Actually I need to simulate qemu API's response). Because of my
> project needs I need to write this simulated libvirt server in Java. I
> believe the simulated libvirt can be written as java RPC which should
> capable to receive