similar to: changes to Story Runner steps

Displaying 20 results from an estimated 600 matches similar to: "changes to Story Runner steps"

2007 Oct 23
10
How is everyone structuring stories?
Bleeding-edge story-writers, How are you structuring your specs? I am working on a new project and tried this: ./lib ./blah ./spec ./blah ./stories But it breaks autotest, so I moved stories parallel to lib and spec. Also what about suffixes? I have adopted "xyz_story_spec.rb", and "xyz.story" for the time being, with the line runner =
2008 Mar 13
22
Specifing methods in a steps_for block
Hey list, I''m refactoring some much-used functionality into a common_steps step group. Methods like this are in there: steps_for :common do Given "a number of existing $types?" do |type| @initial_item_count = type.singularize.classify.constantize.count end When "the user adds an invalid $type" do |type| post
2007 Dec 22
4
StepGroup ?
Hi, I have a need for the StepGroup feature in stories but not clear what''s the current api. Could you provide an example? In my case I have several scenarios which vary in the Givens, but not the results. Ideally I''m hoping to achieve something like: (but anything will do for now :) Scenario: one Given something When he does foo Then good things should happen
2007 Oct 28
4
A better way to stub out constants
Hi Something that''s gnawing at me... to avoid using the SQLite3 gem I''m stubbing it out like this: before(:each) do @database = mock("SQLite3 database") SQLite3 = Module.new SQLite3::Database = Class.new SQLite3::Database.stub!(:new).and_return(@database) end But then it keeps nagging me:
2007 Oct 21
10
Preferred mock framework
Hi In light of the fact that RSpec mocks are going into maintenance mode in the near future, I was wondering what everyone was switching to. I liked the look of FlexMock most, so gave that a shot. However, there''s a few things that don''t work well with RSpec due to the traditional differences in the way Test::Unit cases are written vs RSpec specs. (One spec per
2007 Oct 31
5
Rspec Release Plan (was Am I missing something with Heckle?)
On Oct 31, 2007 11:36 AM, Scott Taylor <mailing_lists at railsnewbie.com> wrote: > When can we expect the next release of rspec? Definitely by the end of November. Likely by mid-November. Hopefully in a matter of days. The next release will be 1.1.0. We''re going to a release model in which 1.odd.x will be considered experimental. This means that while we will document
2007 Oct 31
16
Am I missing something with Heckle?
Hi I can''t get heckle working. In fact, I''ve built an example so simple that it either shows a bug, or I am being really, REALLY stupid. Heckle does not appear to support RSpec directly, so I''m trying to use spec --heckle (RSpec trunk as of 10 mins ago, Heckle 1.4.1). I''ve constructed this pair of sample files: 18> ~/Desktop/heckle_test % cat
2007 Oct 24
3
How do you specify a rubygem is being required?
Hi I''m loading a gem on demand but can''t find a way to spec it. Assuming rubygems is already loaded, I assumed the following would work: describe SqliteConnection, " class" do it "should require ''sqlite3''" do Kernel.should_receive(:require).with("sqlite3") SqliteConnection.new end end Unfortunately
2007 Oct 17
15
Any tips on teaching BDD with RSpec?
Hi I hope this is not OT. I''m training my replacement at work to do BDD Rails development. He''s done a CS/maths degree but has no professional programming experience, so he''s never NOT done a project without BDD. In a way I am jealous of his unspoilt situation :) I''ve gone about things this way: * first teach him some Ruby (he did mainly Java at
2008 Nov 04
16
Rollercoaster Tycoon 3 No matching mode found 1280x960x0 @0!
Hello, I have just installed Rollercoaster Tycoon 3, but failed to run it with wine-1.1.7 I got the following message: > > err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 1280x960x0 @0! (desktop) > err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 1600x1200x0 @0! (desktop) How to fix it? TIA:)
2011 Mar 18
4
Running Rollercoaster Tycoon 3 correctly in Wine
Hey, I have a copy of Rollercoaster Tycoon 3 premium, and I am running a computer with Ubuntu 10.10 64-bit. I want to put Rollercoaster Tycoon 3 on the machine, but I tried before using Wine on Kubuntu, and no success: The sound files would not play and the sound effects wouldn't play. Is there a simple way I can fix this problem without me having to go get a copy of Windows
2007 Oct 21
8
Interesting shared behaviour side-effect
Given the following ApplicationController specs: describe ApplicationController, "one facet", :shared => true do it ''foo'' ... it ''bar'' ... end describe ApplicationController, "some other facet", :shared => true do it ''abc'' ... it ''xyz'' ... end describe
2007 Nov 04
3
Specing raising error, handling, and then not raising error
Hey guys and gals, I have a snippet of code: Net::SMTP(@host, @port, @from_domain) do |smtp| @emails.each do |email| begin smtp.send_message email.encoded, email.from, email.destinations @emails_sent += 1 rescue Exception => e # blah end end end What I want to do is: Say there are 4 emails. First email is sent OK On the second email smtp raises a IOError
2009 Oct 14
14
spec-ing private methods?
On Wed, Oct 14, 2009 at 5:49 PM, Scott Taylor <scott at railsnewbie.com> wrote: > > On Oct 14, 2009, at 3:36 PM, Joaquin Rivera Padron wrote: > > hello there, > how do you tipically spec private methods? The thing is ? have something > like this: > > def some_method > ?? complex_method + other_complex_methods > end > > private > def complex_method...
2007 Oct 20
3
TextMate bundle in MacroMates repo
Hi Recently I sent a modified version of the GetBundle bundle to textmate-dev. It was failing because the RSpec bundle was from another repo (ie RubyForge). One of the replies said that the RSpec bundle was now in the MacroMates repo, which it is. Is that an officially handled thing? If so, what version of the RSpec bundle is being maintained there - CURRENT? It''s
2011 Mar 19
3
HELP! I can't install a .exe file!
Hey, before I was running Wine and I couldn't open up a .exe file that downloads a game (Rollercoaster Tycoon 2 Triple Thrill) that I have bought online. Is there an easy workaround for this? Please, please reply asap, as I am planning on putting Wine on this new computer to run Windows files. Thanks! :)
2009 Oct 22
4
spec failing to run specs when spec.opts is present on 1.2.9
Hi I ran across the following when running spec on an old merb app. $ cat spec/spec.opts $ spec spec/models/topic_spec.rb Options written to spec/spec.opts. You can now use these options with: spec --options spec/spec.opts $ cat spec/spec.opts spec/models/topic_spec.rb $ spec spec/models/topic_spec.rb Options written to spec/spec.opts. You can now use these options with: spec --options
2008 Apr 14
1
Problem with Securom when starting Rollercoaster Tycoon 3
Hello, I've just installed Rollercoaster Tycoon 3 Deluxe (I think it's called 'Platinum' in the US, the version with both addons) on my Kubuntu 8.04 partition with Wine 0.9.59. The installation works fine, but when I try to start the game, the following error message appears: "Please insert the original disc instead of a backup. See www.securom.com/copy for more
2009 Apr 23
1
Can't install Rollercoaster Tycoon 3
Hello, if I will install Rollercoaster Tycoon 3, first I see the Message "Internal Failure - Error Number 0x80040707" (I don't know for it is from RCT3 or from wine), but I'm able to proceed with click on ok. But if I'm in the page to set the path and see the discspace and click on next, I ever get this page. But I don't see any error-message and it is enough discspace.
2007 Nov 13
2
testing scripts
So in the past I''ve written a script that query''s a remote DB, takes the data, validates it, then does some processing, producing a new file with the data in a completely different format. Since this is a script with it''s own set of methods, etc, how do I go about testing the pieces parts? It seems like it should be no different than doing the rails testing I have