Re: [rspec-users] Childrens book

2009-01-14 Thread Stephen Eley
On Wed, Jan 14, 2009 at 6:31 PM, aslak hellesoy wrote: > > http://www.target.com/Island-Care-Beans-VeggieTales-Personalized/dp/B001N8YQZS > So I'm starring in a childrens' book with a cuke. > WEIRD I got curious, so I hit the Target search engine harder. There are 400 pages of search results for

Re: [rspec-users] New rescue_from handling in rspec-rails 1.1.12

2009-01-14 Thread David Chelimsky
On Wed, Jan 14, 2009 at 8:23 PM, Chris Kampmeier wrote: > Howdy, > > This change to rspec-rails in 1.1.12 tripped me up: > http://github.com/dchelimsky/rspec-rails/commit/ef6d2fc15a > (or, see the relevant Lighthouse ticket, here: > http://rspec.lighthouseapp.com/projects/5645/tickets/85) > > Basi

[rspec-users] New rescue_from handling in rspec-rails 1.1.12

2009-01-14 Thread Chris Kampmeier
Howdy, This change to rspec-rails in 1.1.12 tripped me up: http://github.com/dchelimsky/rspec-rails/commit/ef6d2fc15a (or, see the relevant Lighthouse ticket, here: http://rspec.lighthouseapp.com/projects/5645/tickets/85) Basically, we were depending on that "bug" in 1.1.11, since it seemed to ma

Re: [rspec-users] Childrens book

2009-01-14 Thread Jonathan Linowes
On Jan 14, 2009, at 7:36 PM, aslak hellesoy wrote: That's soo my new signature :-) or, favicon.ico___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] IRB-like utility for Cucumber?

2009-01-14 Thread Mark Wilden
On Wed, Jan 14, 2009 at 3:51 PM, Scott Taylor wrote: > > Yeah, just insert this into your step definition: > > require 'rubygems'; require 'ruby-debug'; debugger > > Then type irb > > Now you'll be in the middle of an IRB session > You can actually do ~$ irb >> require 'ruby-debug' => true >>

Re: [rspec-users] Childrens book

2009-01-14 Thread David Chelimsky
On Wed, Jan 14, 2009 at 6:36 PM, aslak hellesoy wrote: > > > On Thu, Jan 15, 2009 at 1:03 AM, David Chelimsky > wrote: >> >> On Wed, Jan 14, 2009 at 5:31 PM, aslak hellesoy >> wrote: >> > In a weak moment of vanity I googled myself and found this: >> > >> > >> > http://www.target.com/Island-Care

Re: [rspec-users] IRB-like utility for Cucumber?

2009-01-14 Thread Sebastian W.
Just in case it wasn't clear from my other comments, yes! Please do! :) If there's a call for assistance, I'd love to help. Zach Dennis wrote: > > This is a very interesting idea. I like it a lot. I imagine it would > be fairly easy to write. If someone doesn't do one by this weekend I > may giv

Re: [rspec-users] Childrens book

2009-01-14 Thread Alex Satrapa
On 15/01/2009, at 10:31 , aslak hellesoy wrote: So I'm starring in a childrens' book with a cuke. Watch out! That cucumber is a Perl evangelist! ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-use

[rspec-users] OT: Who To Ask About Screw.Unit?

2009-01-14 Thread s.ross
I've been using Screw.Unit for some js testing and like the similarity to rSpec, but information is pretty scarce on the Web. What I'm trying to sort out is how to spec a jQuery click handler that submits a form (basically emulates Rails' link_to ... :method => :post). Any pointers to MLs,

Re: [rspec-users] Childrens book

2009-01-14 Thread aslak hellesoy
On Thu, Jan 15, 2009 at 1:03 AM, David Chelimsky wrote: > On Wed, Jan 14, 2009 at 5:31 PM, aslak hellesoy > wrote: > > In a weak moment of vanity I googled myself and found this: > > > > > http://www.target.com/Island-Care-Beans-VeggieTales-Personalized/dp/B001N8YQZS > > > > So I'm starring in a

Re: [rspec-users] spec_server and re-loads of files

2009-01-14 Thread Scott Taylor
On Jan 14, 2009, at 6:10 PM, Matt Wynne wrote: On 14 Jan 2009, at 20:17, Mark Wilden wrote: On Wed, Jan 14, 2009 at 12:05 PM, Matt Wynne wrote: I got spec_server working today, and was literally ecstatic about the speed of response from running a spec. Yelps and all-sorts, very un-Brit

Re: [rspec-users] IRB-like utility for Cucumber?

2009-01-14 Thread Scott Taylor
On Jan 14, 2009, at 6:04 PM, Sebastian W. wrote: Aslak Hellesøy wrote: On Wed, Jan 14, 2009 at 9:55 PM, Sebastian W. wrote: The :line suffix tells cuke to run only the scenario on that particular line. http://wiki.github.com/aslakhellesoy/cucumber/running-features cucumber --help Asla

Re: [rspec-users] spec_server and re-loads of files

2009-01-14 Thread Scott Taylor
On Jan 14, 2009, at 3:05 PM, Matt Wynne wrote: I got spec_server working today, and was literally ecstatic about the speed of response from running a spec. Yelps and all-sorts, very un-British, I can tell you ;) However I'm starting to notice that it doesn't seem to be picking up changes

Re: [rspec-users] Childrens book

2009-01-14 Thread David Chelimsky
On Wed, Jan 14, 2009 at 5:31 PM, aslak hellesoy wrote: > In a weak moment of vanity I googled myself and found this: > > http://www.target.com/Island-Care-Beans-VeggieTales-Personalized/dp/B001N8YQZS > > So I'm starring in a childrens' book with a cuke. > > WEIRD (::) Mirrored smiles? Or perhaps

[rspec-users] Childrens book

2009-01-14 Thread aslak hellesoy
In a weak moment of vanity I googled myself and found this: http://www.target.com/Island-Care-Beans-VeggieTales-Personalized/dp/B001N8YQZS So I'm starring in a childrens' book with a cuke. WEIRD ___ rspec-users mailing list rspec-users@rubyforge.org ht

Re: [rspec-users] spec_server and re-loads of files

2009-01-14 Thread Matt Wynne
On 14 Jan 2009, at 20:17, Mark Wilden wrote: On Wed, Jan 14, 2009 at 12:05 PM, Matt Wynne wrote: I got spec_server working today, and was literally ecstatic about the speed of response from running a spec. Yelps and all-sorts, very un-British, I can tell you ;) However I'm starting to n

Re: [rspec-users] IRB-like utility for Cucumber?

2009-01-14 Thread aslak hellesoy
On Thu, Jan 15, 2009 at 12:04 AM, Sebastian W. wrote: > Aslak Hellesøy wrote: > > On Wed, Jan 14, 2009 at 9:55 PM, Sebastian W. > > wrote: > > > >> > > The :line suffix tells cuke to run only the scenario on that particular > > line. > > > > http://wiki.github.com/aslakhellesoy/cucumber/running-

Re: [rspec-users] IRB-like utility for Cucumber?

2009-01-14 Thread Sebastian W.
Aslak Hellesøy wrote: > On Wed, Jan 14, 2009 at 9:55 PM, Sebastian W. > wrote: > >> > The :line suffix tells cuke to run only the scenario on that particular > line. > > http://wiki.github.com/aslakhellesoy/cucumber/running-features > cucumber --help > > Aslak Ah, okay - I think I understand.

Re: [rspec-users] Documentation about the returns method

2009-01-14 Thread David Chelimsky
On Wed, Jan 14, 2009 at 3:53 PM, Fernando Perez wrote: > Fernando Perez wrote: >> Hi, >> >> From the railscasts website source code, in the episodes_controller_spec >> I read: >> >> it "index action with search should search published episodes" do >> Episode.expects(:search_published).with('

Re: [rspec-users] IRB-like utility for Cucumber?

2009-01-14 Thread aslak hellesoy
On Wed, Jan 14, 2009 at 9:55 PM, Sebastian W. wrote: > Aslak Hellesøy wrote: > > > > cucumber features/scratchpad.feature:34 > > > > > > Hi Aslak, I tried running this against one of my own feature files, but > it didn't seem to do anything? I wasn't sure what was supposed to > happen. Any light

Re: [rspec-users] Adding a custom matcher to a controller

2009-01-14 Thread David Chelimsky
On Wed, Jan 14, 2009 at 3:47 PM, Bart Zonneveld wrote: > > On 14 jan 2009, at 16:43, David Chelimsky wrote: > >> On Wed, Jan 14, 2009 at 5:34 AM, Bart Zonneveld >> wrote: >>> >>> On 14-jan-2009, at 12:10, aslak hellesoy wrote: >>> On Wed, Jan 14, 2009 at 11:12 AM, Bart Zonneveld w

Re: [rspec-users] Please clarify test / step definition return value?

2009-01-14 Thread James Byrne
David Chelimsky wrote: > > Seems like you've answered your own question. I'm not sure where it's > laid out in the docs, but I'm also unsure as to where you got the > impression you had :) > Well, the impression came from my unconscious mental mapping of pass=true and fail=false. "should_be s

[rspec-users] Documentation about the returns method

2009-01-14 Thread Fernando Perez
Hi, >From the railscasts website source code, in the episodes_controller_spec I read: it "index action with search should search published episodes" do Episode.expects(:search_published).with('foo').returns(Episode.all) get :index, :search => 'foo' end Here are my questions: - What d

Re: [rspec-users] Please clarify test / step definition return value?

2009-01-14 Thread James Byrne
Aslak Hellesøy wrote: > > Since this is such a common idiom I guess noone thought it required a > specific mention. > Probably. This is what happens when a dinosaur is brought forceably forward in time. > Please give me a pointer to a relevant page where you'd expect to see > this mentioned

Re: [rspec-users] IRB-like utility for Cucumber?

2009-01-14 Thread Sebastian W.
Aslak Hellesøy wrote: > On Wed, Jan 14, 2009 at 9:57 PM, Tero Tilus wrote: > >> 2009-01-14 18:47, aslak hellesoy: >> > What value vould it bring over plain old: >> > cucumber features/scratchpad.feature:34 >> >> You gotta admit that at least the cool-factor would be pretty high. :) >> > > Cool

Re: [rspec-users] Documentation about the returns method

2009-01-14 Thread Fernando Perez
Fernando Perez wrote: > Hi, > > From the railscasts website source code, in the episodes_controller_spec > I read: > > it "index action with search should search published episodes" do > Episode.expects(:search_published).with('foo').returns(Episode.all) > get :index, :search => 'foo' >

Re: [rspec-users] [cucumber] missing the command --line option

2009-01-14 Thread Matt Wynne
On 14 Jan 2009, at 19:22, Fernando García Samblas wrote: Cucus, previous versions of cucumber had a command --line option that let you run only one scenario given its line at the feature file. Now, as far as I know, to do the same thing (run a specific scenario) I have to use the --scenar

Re: [rspec-users] Adding a custom matcher to a controller

2009-01-14 Thread Bart Zonneveld
On 14 jan 2009, at 16:43, David Chelimsky wrote: On Wed, Jan 14, 2009 at 5:34 AM, Bart Zonneveld > wrote: On 14-jan-2009, at 12:10, aslak hellesoy wrote: On Wed, Jan 14, 2009 at 11:12 AM, Bart Zonneveld > wrote: Hey list, I've written a custom matcher (http://gist.github.com/46858) whic

Re: [rspec-users] IRB-like utility for Cucumber?

2009-01-14 Thread aslak hellesoy
On Wed, Jan 14, 2009 at 9:57 PM, Tero Tilus wrote: > 2009-01-14 18:47, aslak hellesoy: > > What value vould it bring over plain old: > > cucumber features/scratchpad.feature:34 > > You gotta admit that at least the cool-factor would be pretty high. :) > Cool is soo 2008 ;-) > > -- > Tero Tilu

Re: [rspec-users] Please clarify test / step definition return value?

2009-01-14 Thread aslak hellesoy
On Wed, Jan 14, 2009 at 8:44 PM, James Byrne wrote: > I have been working under the impression that that tests/step > definitions worked on a simple boolean logic and behaved like ruby > methods, the last value is returned. Thus, in my understanding, if the > return value is true then the step d

Re: [rspec-users] IRB-like utility for Cucumber?

2009-01-14 Thread Tero Tilus
2009-01-14 18:23, Sebastian W.: > "interactive Cucumber" session similar to irb? I can imagine it (when combined with Selenium) being not only cool, but very useful tool when writing features. Kinda same way console is useful when writing code. -- Tero Tilus ## 050 3635 235 ## http://tero.tilus

Re: [rspec-users] [cucumber] missing the command --line option

2009-01-14 Thread aslak hellesoy
On Wed, Jan 14, 2009 at 8:22 PM, Fernando García Samblas < fernando.gar...@the-cocktail.com> wrote: > > Cucus, > > previous versions of cucumber had a command --line option that let you > run only one scenario given its line at the feature file. > foo.feature:line is even faster - you can copy-pa

Re: [rspec-users] autospec is not picking latest changes

2009-01-14 Thread Fernando Perez
Hi, I am facing a similar problem. Actually what happens, is that when I edit specs and then save, then autospec detects it and runs the specs, but when I edit the application's code only, then autospec doesn't run. Is that a normal behavior because of people fed up of autospec running 10 time

Re: [rspec-users] Missing model attribute in cucumber test

2009-01-14 Thread Aslak Hellesøy
James Byrne wrote: I have gotten past this somehow. The only thing that I think may have influenced this is manually preparing the test database. However, now I have a different problem. Here is the same step definition: When /user named "(.*)" is an administrator/ do |name| my_user =

Re: [rspec-users] Please clarify test / step definition return value?

2009-01-14 Thread David Chelimsky
On Wed, Jan 14, 2009 at 1:44 PM, James Byrne wrote: > I have been working under the impression that that tests/step > definitions worked on a simple boolean logic and behaved like ruby > methods, the last value is returned. Thus, in my understanding, if the > return value is true then the step de

Re: [rspec-users] IRB-like utility for Cucumber?

2009-01-14 Thread Tero Tilus
2009-01-14 18:47, aslak hellesoy: > What value vould it bring over plain old: > cucumber features/scratchpad.feature:34 You gotta admit that at least the cool-factor would be pretty high. :) -- Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/ ___

Re: [rspec-users] Missing model attribute in cucumber test

2009-01-14 Thread Fernando García Samblas
James Byrne escribió: > James Byrne wrote: > > I have gotten past this somehow. The only thing that I think may have > influenced this is manually preparing the test database. However, now I > have a different problem. > > Here is the same step definition: > > When /user named "(.*)" is an admi

Re: [rspec-users] IRB-like utility for Cucumber?

2009-01-14 Thread Sebastian W.
Aslak Hellesøy wrote: > cucumber features/scratchpad.feature:34 > > Hi Aslak, I tried running this against one of my own feature files, but it didn't seem to do anything? I wasn't sure what was supposed to happen. Any light you can shed would be awesome. : ) > I assume you've stumbled upon

Re: [rspec-users] spec_server and re-loads of files

2009-01-14 Thread Mark Wilden
On Wed, Jan 14, 2009 at 12:05 PM, Matt Wynne wrote: > I got spec_server working today, and was literally ecstatic about the speed > of response from running a spec. Yelps and all-sorts, very un-British, I can > tell you ;) > > However I'm starting to notice that it doesn't seem to be picking up >

Re: [rspec-users] Missing model attribute in cucumber test

2009-01-14 Thread Matt Wynne
On 14 Jan 2009, at 18:46, James Byrne wrote: Then I see this error: And the user named "newuser" is an administrator # features/app/models/users/step_definitions/user_steps.rb:24 undefined method `user_administrator' for # (NoMethodError) /usr/lib64/ruby/gems/1.8/gems/activerec

Re: [rspec-users] Missing model attribute in cucumber test

2009-01-14 Thread James Byrne
James Byrne wrote: I have gotten past this somehow. The only thing that I think may have influenced this is manually preparing the test database. However, now I have a different problem. Here is the same step definition: When /user named "(.*)" is an administrator/ do |name| my_user = User

[rspec-users] spec_server and re-loads of files

2009-01-14 Thread Matt Wynne
I got spec_server working today, and was literally ecstatic about the speed of response from running a spec. Yelps and all-sorts, very un- British, I can tell you ;) However I'm starting to notice that it doesn't seem to be picking up changes. I'm working on a helper function at the moment,

Re: [rspec-users] Missing model attribute in cucumber test

2009-01-14 Thread aslak hellesoy
On Wed, Jan 14, 2009 at 7:56 PM, James Byrne wrote: > James Byrne wrote: > > > Then I see this error: > > > > And the user named "newuser" is an administrator # > > features/app/models/users/step_definitions/user_steps.rb:24 > > undefined method `user_administrator' for # > > (NoMet

[rspec-users] Please clarify test / step definition return value?

2009-01-14 Thread James Byrne
I have been working under the impression that that tests/step definitions worked on a simple boolean logic and behaved like ruby methods, the last value is returned. Thus, in my understanding, if the return value is true then the step definition passed. if it was false, then the step definition f

[rspec-users] [cucumber] missing the command --line option

2009-01-14 Thread Fernando García Samblas
Cucus, previous versions of cucumber had a command --line option that let you run only one scenario given its line at the feature file. Now, as far as I know, to do the same thing (run a specific scenario) I have to use the --scenario option writing the scenario name. In my opinion, since cucum

Re: [rspec-users] Missing model attribute in cucumber test

2009-01-14 Thread aslak hellesoy
On Wed, Jan 14, 2009 at 7:46 PM, James Byrne wrote: > Rails 2.2.2 > Cucumber 0.1.15 > SQLite3 > > I have this migration for the User model: > > class CreateUsers < ActiveRecord::Migration > def self.up >create_table :users do |t| > ... > t.string:sms_address > t.boolean :user

Re: [rspec-users] Missing model attribute in cucumber test

2009-01-14 Thread James Byrne
James Byrne wrote: > Then I see this error: > > And the user named "newuser" is an administrator # > features/app/models/users/step_definitions/user_steps.rb:24 > undefined method `user_administrator' for # > (NoMethodError) > > /usr/lib64/ruby/gems/1.8/gems/activerecord-2.2.

[rspec-users] Missing model attribute in cucumber test

2009-01-14 Thread James Byrne
Rails 2.2.2 Cucumber 0.1.15 SQLite3 I have this migration for the User model: class CreateUsers < ActiveRecord::Migration def self.up create_table :users do |t| ... t.string:sms_address t.boolean :user_administrator,:default => false,

Re: [rspec-users] IRB-like utility for Cucumber?

2009-01-14 Thread Scott Taylor
On Jan 14, 2009, at 12:23 PM, Sebastian W. wrote: Hello RSpec forum, So...I realize this is a bit of a crazy question, but I wanted to throw it out there to see what answers came back: is there any way to start an "interactive Cucumber" session similar to irb? For example: bash> crb Give

Re: [rspec-users] IRB-like utility for Cucumber?

2009-01-14 Thread aslak hellesoy
On Wed, Jan 14, 2009 at 6:23 PM, Sebastian W. wrote: > Hello RSpec forum, > So...I realize this is a bit of a crazy question, but I wanted to throw > it out there to see what answers came back: is there any way to start an > "interactive Cucumber" session similar to irb? > > For example: > bash>

Re: [rspec-users] IRB-like utility for Cucumber?

2009-01-14 Thread Zach Dennis
On Wed, Jan 14, 2009 at 12:23 PM, Sebastian W. wrote: > Hello RSpec forum, > So...I realize this is a bit of a crazy question, but I wanted to throw > it out there to see what answers came back: is there any way to start an > "interactive Cucumber" session similar to irb? > > For example: > bash>

Re: [rspec-users] Testing Sub-domains with Cucumber

2009-01-14 Thread Jonathan Linowes
On Jan 14, 2009, at 11:39 AM, Tom Hoen wrote: Jonathan Linowes wrote: I do: host! "#{account.to_param}.example.com" --linoj linoj - thanks for the info. Where do you put this? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing lis

[rspec-users] IRB-like utility for Cucumber?

2009-01-14 Thread Sebastian W.
Hello RSpec forum, So...I realize this is a bit of a crazy question, but I wanted to throw it out there to see what answers came back: is there any way to start an "interactive Cucumber" session similar to irb? For example: bash> crb >> Given that I do stuff >> When I do more stuff >> Then stuff

Re: [rspec-users] Testing Sub-domains with Cucumber

2009-01-14 Thread Tom Hoen
Jonathan Linowes wrote: > I do: > > host! "#{account.to_param}.example.com" > > --linoj linoj - thanks for the info. Where do you put this? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyfo

Re: [rspec-users] Help with regexp in matcher

2009-01-14 Thread James Byrne
Matt Wynne wrote: > > I actually rather like the unambiguous, and jargon-free 'current > authenticated session' phraseology, but I'm not one of your users, so > that doesn't really matter! I do too, but I am not the president either... > > I have one more suggestion. From all these different w

Re: [rspec-users] Adding a custom matcher to a controller

2009-01-14 Thread David Chelimsky
On Wed, Jan 14, 2009 at 5:34 AM, Bart Zonneveld wrote: > > On 14-jan-2009, at 12:10, aslak hellesoy wrote: > >> On Wed, Jan 14, 2009 at 11:12 AM, Bart Zonneveld >> wrote: >>> >>> Hey list, >>> >>> I've written a custom matcher (http://gist.github.com/46858) which I'd >>> like to use in Cucumber s

Re: [rspec-users] Testing Sub-domains with Cucumber

2009-01-14 Thread Stephen Eley
On Tue, Jan 13, 2009 at 8:46 PM, Tom Hoen wrote: > > When I say 'visits "/login"' in a step, I want it to have know to go to > harvey.localhost:3000 for this feature/scenario. In another > feature/scenario, I will want it to go to humbel.localhost:3000 etc. Have you tried telling it "visits http:

Re: [rspec-users] Understanding before(:all)

2009-01-14 Thread Stephen Eley
On Sat, Jan 10, 2009 at 1:59 PM, David Richards wrote: > > Can someone explain why there would be different behavior between > running one file and many files and before(:each) vs. before(:all)? > As far as I understand it, I thought before(:all) was supposed to > always run before a group of spec

Re: [rspec-users] Understanding before(:all)

2009-01-14 Thread David Chelimsky
On Sat, Jan 10, 2009 at 12:59 PM, David Richards wrote: > I had, for historic reasons, a setup on a group of specs: > > before(:all) do >@contents = [%w(this that), %w(this other)] >FasterCSV.stub!(:open).and_return(@contents) >@filename = 'test_filename' > end > > When I ran the sin

Re: [rspec-users] eql not matching identical hashes unless they actually are the same object

2009-01-14 Thread David Chelimsky
On Wed, Jan 14, 2009 at 5:07 AM, Maurício Linhares wrote: > "eql?" matches object references, you should use "==" to match equality. eql? acts differently in different situations. equal? is the one you should use for object references if you want any consistency. > > - > Maurício Linhares > http

Re: [rspec-users] getting started - very much a beginner

2009-01-14 Thread Tom Cloyd
aslak hellesoy wrote: On Sun, Jan 11, 2009 at 1:26 PM, Tom Cloyd > wrote: A hope my ignorance is acceptable here. I have, to this point, programmed in Ruby mostly using my awareness of procedural programming; I've written a small number of very useful

Re: [rspec-users] getting started - very much a beginner

2009-01-14 Thread Tom Cloyd
James Byrne wrote: Tom Cloyd wrote: The problem is that this assumes you are working with Rails, about which I know little and desire to know less. I get stuck, on that page, at the phrase... ==When you run "script/generate cucumber" == Huh? Is this something you do in Rails? Then there's

Re: [rspec-users] Example on the Cucumber home page

2009-01-14 Thread aslak hellesoy
On Wed, Jan 14, 2009 at 3:57 PM, Nick Hoffman wrote: > Great work on the logo and website, Aslak & Co! It looks great, and and the > prominent six steps to using Cucumber is exactly what newbs. > > I have one question about step #2. The Given-block initialises a new > Calculator each time it's ru

Re: [rspec-users] autospec, with autofeature, with options

2009-01-14 Thread Bart Zonneveld
On 14-jan-2009, at 12:18, aslak hellesoy wrote: On Wed, Jan 14, 2009 at 12:02 PM, Bart Zonneveld wrote: Hey list, I'm trying to run autospec with AUTOFEATURE=true, but my features are written in Dutch. How can I throw --language nl to cucumber run from within autospec?.. Stick it into

[rspec-users] Example on the Cucumber home page

2009-01-14 Thread Nick Hoffman
Great work on the logo and website, Aslak & Co! It looks great, and and the prominent six steps to using Cucumber is exactly what newbs. I have one question about step #2. The Given-block initialises a new Calculator each time it's run. This would cause the "Given I have entered 50 into th

Re: [rspec-users] Testing Sub-domains with Cucumber

2009-01-14 Thread Jonathan Linowes
On Jan 13, 2009, at 8:46 PM, Tom Hoen wrote: My site uses sub-domains to create a context for the user. In my tests, I need to stipulate what domain is being used, to test whether the context is correct for the given user. But I cannot find if and where i can change the request.host value, i

Re: [rspec-users] Testing Sub-domains with Cucumber

2009-01-14 Thread Tom Hoen
Matt Wynne wrote: > > Are we on rails here, or something else? You might be better asking on > the webrat list (google group - check the webrat readme for details) > or IRC, to be honest. > Thanks Matt, I will send a message to the webrat group. It is rails, so I have the same issue with view

Re: [rspec-users] autospec, with autofeature, with options

2009-01-14 Thread aslak hellesoy
On Wed, Jan 14, 2009 at 12:02 PM, Bart Zonneveld wrote: > Hey list, > > I'm trying to run autospec with AUTOFEATURE=true, but my features are > written in Dutch. How can I throw --language nl to cucumber run from within > autospec?.. > Stick it into cucumber.yml - inside the autotest and autotest

Re: [rspec-users] eql not matching identical hashes unless they actually are the same object

2009-01-14 Thread Maurício Linhares
"eql?" matches object references, you should use "==" to match equality. - Maurício Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) On Thu, Jan 8, 2009 at 1:26 PM, Leandro Pedroni wrote: > rspec 1.1.11 and it's rails sidekick. > > After writing a few specs f

Re: [rspec-users] Adding a custom matcher to a controller

2009-01-14 Thread Bart Zonneveld
On 14-jan-2009, at 12:10, aslak hellesoy wrote: On Wed, Jan 14, 2009 at 11:12 AM, Bart Zonneveld wrote: Hey list, I've written a custom matcher (http://gist.github.com/46858) which I'd like to use in Cucumber specifically. In my spec_helper, I have required the file where the matcher li

Re: [rspec-users] eql not matching identical hashes unless they actually are the same object

2009-01-14 Thread aslak hellesoy
On Thu, Jan 8, 2009 at 5:26 PM, Leandro Pedroni wrote: > rspec 1.1.11 and it's rails sidekick. > > After writing a few specs for an object I created that inherits form > an Hash I noticed that eql wasn't matching hashes that where actually > matching (I'm pretty sure it worked fine before): > >

Re: [rspec-users] Adding a custom matcher to a controller

2009-01-14 Thread aslak hellesoy
On Wed, Jan 14, 2009 at 11:12 AM, Bart Zonneveld wrote: > Hey list, > > I've written a custom matcher (http://gist.github.com/46858) which I'd > like to use in Cucumber specifically. > In my spec_helper, I have required the file where the matcher lives in, and > added it to Spec::Runner.configure.

[rspec-users] autospec, with autofeature, with options

2009-01-14 Thread Bart Zonneveld
Hey list, I'm trying to run autospec with AUTOFEATURE=true, but my features are written in Dutch. How can I throw --language nl to cucumber run from within autospec?.. cheers, bartz ___ rspec-users mailing list rspec-users@rubyforge.org http://rub

Re: [rspec-users] [cucumber] before/after scenarios

2009-01-14 Thread Matt Wynne
On 6 Jan 2009, at 05:22, Paul Covell wrote: Joseph Wilk-4 wrote: Tim Walker wrote: So...that's it: Setup/Teardown Before/After scenarios...what's the scoop? http://github.com/aslakhellesoy/cucumber/wikis/hooks Does the information here answer your questions or do you think its missing

Re: [rspec-users] Autospec doesn't pick up my plugin specs

2009-01-14 Thread Bart Zonneveld
On 8-jan-2009, at 10:50, Bart Zonneveld wrote: 'ello list, I'm trying to develop a plugin with rspec, but I can't seem to get autospec to watch my spec files. I've used the rspec_plugin to create my plugin, so I have a spec directory with a pending step in it. Do I need to adjust autospe

[rspec-users] Adding a custom matcher to a controller

2009-01-14 Thread Bart Zonneveld
Hey list, I've written a custom matcher (http://gist.github.com/46858) which I'd like to use in Cucumber specifically. In my spec_helper, I have required the file where the matcher lives in, and added it to Spec::Runner.configure. In one of my cucumber steps, I have: response.should have_not

[rspec-users] Understanding before(:all)

2009-01-14 Thread David Richards
I had, for historic reasons, a setup on a group of specs: before(:all) do @contents = [%w(this that), %w(this other)] FasterCSV.stub!(:open).and_return(@contents) @filename = 'test_filename' end When I ran the single file (spec spec/transformer/csv_spec.rb), all my specs passed.

Re: [rspec-users] [cucumber] before/after scenarios

2009-01-14 Thread Joseph Wilk
Paul Covell wrote: Joseph Wilk-4 wrote: Tim Walker wrote: So...that's it: Setup/Teardown Before/After scenarios...what's the scoop? http://github.com/aslakhellesoy/cucumber/wikis/hooks Does the information here answer your questions or do you think its missing some details?

Re: [rspec-users] Help with regexp in matcher

2009-01-14 Thread Matt Wynne
On 13 Jan 2009, at 20:10, James Byrne wrote: Stephen Eley wrote: On Tue, Jan 13, 2009 at 10:41 AM, James Byrne wrote: Logins are a pervasive feature of this application Which is exactly why you should standardize. If you try to be accommodating toward unclear communication, you're just g

Re: [rspec-users] [cucumber] before/after scenarios

2009-01-14 Thread Paul Covell
Joseph Wilk-4 wrote: > > Tim Walker wrote: >> So...that's it: Setup/Teardown Before/After scenarios...what's the scoop? > > http://github.com/aslakhellesoy/cucumber/wikis/hooks > > Does the information here answer your questions or do you think its > missing some details? > I've been thinki

[rspec-users] eql not matching identical hashes unless they actually are the same object

2009-01-14 Thread Leandro Pedroni
rspec 1.1.11 and it's rails sidekick. After writing a few specs for an object I created that inherits form an Hash I noticed that eql wasn't matching hashes that where actually matching (I'm pretty sure it worked fine before): {:foo => 0, :bar => 1}.should eql({:foo => 0, :bar => 1}) # => exp

[rspec-users] New Cucumber website and logo!

2009-01-14 Thread aslak hellesoy
Hi all, The logo contest is over and the winner is Gideon Bullock! Exactly 545 people voted on a logo, and Gideon got 22% of the votes. Daniel Lopes came second with 19% and Dan Ryan third with 14%. I'd like to thank everyone who contributed logos (in alphabetical order): Dan Ryan Daniel Lopes

Re: [rspec-users] Testing Sub-domains with Cucumber

2009-01-14 Thread Matt Wynne
On 14 Jan 2009, at 01:46, Tom Hoen wrote: My site uses sub-domains to create a context for the user. In my tests, I need to stipulate what domain is being used, to test whether the context is correct for the given user. But I cannot find if and where i can change the request.host value, if i

[rspec-users] Autospec doesn't pick up my plugin specs

2009-01-14 Thread Bart Zonneveld
'ello list, I'm trying to develop a plugin with rspec, but I can't seem to get autospec to watch my spec files. I've used the rspec_plugin to create my plugin, so I have a spec directory with a pending step in it. Do I need to adjust autospec's mapping somewhere? And if so, how? :) thanks

Re: [rspec-users] [Cucumber] after feature hook?

2009-01-14 Thread Joseph Wilk
aidy lewis wrote: Hi, Is there a hook or a method to execute some code after a whole feature has run or will I need to embed that in a 'Then'? There are currently no before/after feature hooks. http://github.com/aslakhellesoy/cucumber/wikis/hooks Also if you want something to happen befor

Re: [rspec-users] Cucumber: acceptance testing OAuth

2009-01-14 Thread Adam Greene
Hey guys, I've been running into this *exact* same issue. Luke Melia, in this thread: http://groups.google.com/group/rspec/browse_thread/thread/39a455db0ce19532/185e7f8bdbd79383?lnk=gst&q=cucumber+stub#185e7f8bdbd79383 offers an interesting way around this issue. What I ended up doing, was in t