similar to: Hooks before a scenario but not the background: possible or bad practice

Displaying 20 results from an estimated 400 matches similar to: "Hooks before a scenario but not the background: possible or bad practice"

2011 Mar 04
5
How to intercept an instance method from StdLib (1.9.2)
Hi, I''m struggling with something that seems to be simple, and I''ve not had any joy following the RSpec books suggestions (p. 187). I''d like to test that a method raises and error when a file is not found. I''ve tried adding this in my example just before I call my method, but it never seems to get invoked. Pathname.stub(:exist?).and_return(false) The whole
2011 Mar 03
1
Does RSpec interfere with Pathname#dirname or Pathname#realpath ?
Hi, I starting a new project, and have run into behavior I cannot replicate in irb, (i.e. outside of using rspec) when the directory? returns true, so I thought I''d ask here, in case any one has seen this badhavior. ruby-1.9.2-p136 rspec (2.5.0) rspec-core (2.5.1) rspec-expectations (2.5.0) rspec-mocks (2.5.0) When I try to run this spec: require Pathname(__FILE__).ascend { |d|
2009 Nov 02
0
testing Rake tasks with FakeFS
Jake Benilov wrote: > Hello Ben, > Hi Jake, I hope you don''t mind but I am copying this response to the rspec-users list in case any one else is able to shed more light on it. > I have a bit of a newbie question regarding fakefs; I want to test Rake > tasks using fakefs and rspec: > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > require
2009 Aug 25
11
[Bug 23495] New: nouveau KMS produces no output on a Dell 3008WFP monitor
http://bugs.freedesktop.org/show_bug.cgi?id=23495 Summary: nouveau KMS produces no output on a Dell 3008WFP monitor Product: xorg Version: unspecified Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Driver/nouveau AssignedTo: nouveau at
2020 Aug 09
3
multiple vms with same PCI passthrough
In attempting to isolate vfio-pci problems between two different guest instances, the creation of a second guest (with existing guest shutdown) resulted in:. Aug 09 12:43:23 grit libvirtd[6716]: internal error: Device 0000:01:00.3 is already in use Aug 09 12:43:23 grit libvirtd[6716]: internal error: Device 0000:01:00.3 is already in use Aug 09 12:43:23 grit libvirtd[6716]: Failed to allocate PCI
2020 Aug 18
2
Re: multiple vms with same PCI passthrough
Thanks Laine, Mea Culpa, Couldn't reproduce, or found the multiple duplicate entries in the guest pci domain/bus/slot/function space which got resolved easily. [root@grit tmp]# virsh list Id Name State -------------------- [root@grit tmp]# virsh list --all Id Name State ------------------------------ - openbsd6.7 shut off - openindiana shut off -
2009 Apr 17
2
Error messages 3.0.6pre1
I compiled 3.0.6pre1, including the crtimes and fileflags patches for use on Intel OS X 10.5.6, as described by Mr. Bombich (thanks!) here: <http://www.bombich.com/mactips/rsync.html> I want to use 3.0.6 because it seems that this bug: <https://bugzilla.samba.org/show_bug.cgi?id=5365> has been resolved (yay!). ----- [~]$ rsync --version rsync version 3.0.6pre1 protocol version 30
2011 Jul 24
4
Downloading files not stored in database?
Hello list, I am trying to add functionality to my application that will allow users to download files that are not stored in a database. All the examples I have found find the file by ID. which I can not do. Here is my code from the view: <h1>Browse files for download</h1> <% form_for(:download, :url=>{ :controller=>"download",
2003 May 08
1
SIP client registration
Hello, I'm trying to register some dynamic SIP softphone (SJphone) but it's not very clear to me where (sip.conf??) I have to configure the registration. Can you give me an example of configuration file to register a dynamic SIP phone? Thanks Marco Poet QiNet SRL Via Oulx 30/A 10139 Torino Italy Email marco.poet@qinet.it Phone +39 0117410856 Fax +39 0117571140 Mobile +39 3493009702
2011 Dec 05
5
Spec'ing a block
Hi folks How would you spec something like this: as_user username do FileUtils.chmod_R 0755, "#{directory}/*" end Where as_user fires off a new process (and set uid to username). It seems that this won''t catch FileUtils.chmod_R: FileUtils.should_receive(:chmod_R).with(0755, "#{@domain.directory}/*") I guess that is because it is passed in the block
2010 Jan 29
3
testing controllers using cucumber
Hello, Is there any way to test controllers using cucumber. I was doing it with rspec but since cucumber''s description is good how can i proceed testing it with cucumber? For e.g. I have a scenario of user creation like Feature: User Scenarios Scenario: Successfull creation of user Given a new user When the user fill all the mandatory details Then that user should get
2010 Jul 09
2
Email Testing with Cucumber and email-spec
Hello Friends! I have been trying to test email using Cucumber and Email-Spec. I have put this statement "require ''email_spec/cucumber''" in support/env.rb file and I am getting this error: "Using the default profile... uninitialized constant EmailSpec (NameError)" I don''t know what I am doing wrong. Please help!!!! Thanks a lot!!!! -- Posted via
2006 Dec 13
4
Unintended thread forked in autostart
Hello all, I''ve got the problem about the following simple application using autostart and repeat_every. A thread(?) is forked for processing task at first, but at sencond time two threads seem to be forked. My simple application code is... - In worker class class FooWorker < BackgrounDRb:Rails repeat_every 2.minutes first_run Time.now def do_work puts Time.now.to_s +
2009 Aug 10
2
testing exception notification plugin with rspec
Hi, I''m trying to install exception notification plugin and test it with rspec. The problem that I have is that when running the server in production mode : at the end of the log i get this when I have a critical error rendering section "request" rendering section "session" rendering section "environment" rendering section "backtrace" Sent mail to
2005 Aug 23
3
OT: BIOS upgrades and booting without a floppy drive
I've got a machine running CentOS 3.5 with an Intel D865GBF motherboard and I've been having an occasional "event" where disk-intensive activity (such as running "yum check-update" or starting up OpenOffice) causes the load average to spike and X11 to become unresponsive (as in, the pointer won't even track the mouse) for a few seconds. The machine always recovers
2006 Oct 30
2
SVN requiring authentication
I can''t get to the code anymore. Devjavu''s svn is asking for a username and password. http://svn.devjavu.com/backgroundrb/ Authorization Required This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn''t understand how to supply the credentials
2008 Oct 18
3
Cucumber "standard base" setup?
I''m trying to set up cucumber so we can try it in some Ruby automation scripts I''m working on. These will be straight Ruby, for use in BBEdit and TextMate (on the Mac). NOT Rails. The big early-stage stumbling block I''m having is setting up the initial Rakefile and directory structure. I think I''m rtfm''ing, but clearly I''m missing
2011 Mar 22
2
R_HOME path getting munged in inst/doc/Makefile on Windows
Hello, I have come across two separate packages that have a Makefile in inst/doc which use the R_HOME variable. In both cases, the path to R_HOME gets munged in such a way that commands that include R_HOME fail on Windows: For example, one Makefile, for the xmapcore package ( https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/xmapcore/username/password: readonly) has this:
2010 Nov 24
1
rails 3 cucumber load env
I already posted this on the cukes group but figure I would try here as well. Our prod app has an initializer that load up some constants for use in the app, no biggy. The issue is with rails 3 when I invoke cucumber it chokes not recognizing them even though it works fine in dev mode and prod mode. It obviously is processing the init file because I have a module that has some attributes inside
2005 Sep 01
1
Wine Font Problem with VB app in Ubuntu
Greetings. I have been trying to run a VB6 application in Ubuntu using Wine, but it has a significant font issue. Having been successful in RedHat, where there was no problem running the Application's fonts in Wine, it is puzzling why this is not so in Ubuntu. I have followed the support messages (both archived and current) to try to correct the problem. I have installed the