[rspec-users] expect_render, why does there need to be a warning

2007-08-13 Thread Zach Dennis
There is a warning on the web site about expect_render and stub_render: WARNING: expect_render and stub_render, while very useful, act differently from standard Message Expectations (a.k.a. mock expectations), which would never pass calls through to the real object. This can be very confusing

Re: [rspec-users] [ANN] RSpec-1.0.8

2007-08-13 Thread Zach Dennis
I've been waiting for this since June so I can have expect_render officially . Thanks for the hard work! Zach On 8/13/07, David Chelimsky [EMAIL PROTECTED] wrote: The RSpec Development Team is pleased to announce the release of RSpec-1.0.8. RSpec 1.0.6 is the holy cow, batman, it's been a

Re: [rspec-users] expect_render, why does there need to be a warning

2007-08-15 Thread Zach Dennis
On 8/15/07, David Chelimsky [EMAIL PROTECTED] wrote: On 8/15/07, Zach Dennis [EMAIL PROTECTED] wrote: On 8/14/07, David Chelimsky [EMAIL PROTECTED] wrote: On 8/14/07, Zach Dennis [EMAIL PROTECTED] wrote: On 8/14/07, David Chelimsky [EMAIL PROTECTED] wrote: On 8/14/07, Zach Dennis

Re: [rspec-users] undefined method `mock_model' for [RSpec example]:#Class:0x25550a8

2007-08-24 Thread Zach Dennis
On 8/20/07, David Chelimsky [EMAIL PROTECTED] wrote: On 8/20/07, Zach Dennis [EMAIL PROTECTED] wrote: On 8/20/07, aslak hellesoy [EMAIL PROTECTED] wrote: Several problems here: First, rspec_scaffold must be given a *singularised* name, in your case 'product'. (This is Rails being

Re: [rspec-users] Story Runner: Readability of output with multiple params

2007-10-13 Thread Zach Dennis
On 10/13/07, David Chelimsky [EMAIL PROTECTED] wrote: And the user, Joe, works for, Acme, as a, janitor I vote no on this. And the user $user works for $company as a $jobtitle, Joe, Acme, janitor If these are the two choices then this one is better, but this doesn't feel quite right. It

Re: [rspec-users] Story Runner: Readability of output with multiple params

2007-10-14 Thread Zach Dennis
= Generate.company(Acme) @company.employees = @user end ? -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] plain text stories

2007-10-23 Thread Zach Dennis
Nice work David! This is a wonderful step in the right direction! Zach Dennis http://www.continuousthinking.com On 10/21/07, David Chelimsky [EMAIL PROTECTED] wrote: Thanks to discussions on this list, suggestions from many of you and a patch from Pat Maddox, we now have Plain Text User

[rspec-users] rspec_on_rails, receive_and_render experiment

2007-11-13 Thread Zach Dennis
A recent exploration on receive_and_render to assist with some common view spec'ing can be found at http://www.continuousthinking.com/2007/11/14/rspec_on_rails-render_and_receive_matcher Suggestions and feedback are welcome. Thanks, -- Zach Dennis http://www.continuousthinking.com

[rspec-users] textmate bundle

2007-11-28 Thread Zach Dennis
/zdennis/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:33:in `run' from /Users/zdennis/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:12:in `run_file' from /tmp/temp_textmate.AZtCnz:4 -- Zach

Re: [rspec-users] textmate bundle

2007-11-28 Thread Zach Dennis
/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:17:in `run_focussed' from /tmp/temp_textmate.zWPVDL:4 -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman

Re: [rspec-users] Mocks? Really?

2007-12-26 Thread Zach Dennis
On Dec 26, 2007 3:23 PM, Pat Maddox [EMAIL PROTECTED] wrote: On Dec 23, 2007 2:27 PM, Zach Dennis [EMAIL PROTECTED] wrote: I know the questioned are directed towards Dan so I hope you don't me chiming in. My comments are inline. Thanks a lot for your comments, I really appreciate them

Re: [rspec-users] Mocks? Really?

2007-12-27 Thread Zach Dennis
On Dec 26, 2007 3:23 PM, Pat Maddox [EMAIL PROTECTED] wrote: On Dec 23, 2007 2:27 PM, Zach Dennis [EMAIL PROTECTED] wrote: I know the questioned are directed towards Dan so I hope you don't me chiming in. My comments are inline. Thanks a lot for your comments, I really appreciate them

Re: [rspec-users] Do you think it would look cleaner?

2007-12-29 Thread Zach Dennis
first read it I thought it was going to receive the hash as arguments and return the hash. I think the expressiveness of should_receive(...).and_return(...) wins in this case, -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list

Re: [rspec-users] Mocks? Really?

2007-12-31 Thread Zach Dennis
doing less design. -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Mocks? Really?

2008-01-01 Thread Zach Dennis
On Jan 1, 2008 1:48 PM, Francis Hwang [EMAIL PROTECTED] wrote: On Dec 31, 2007, at 1:10 PM, Zach Dennis wrote: I don't think it is designing less either. It's designing better and doing it smarter, knowing that you'll never fully comprehend the domain of your problem upfront, so you

Re: [rspec-users] Do you think it would look cleaner?

2008-01-02 Thread Zach Dennis
in this case. RSpec doesn't enforce strict-order mocking. Nor does Mocha. Hardmock is the only mocking library in ruby that I know of that can do this, -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http

Re: [rspec-users] Do you think it would look cleaner?

2008-01-02 Thread Zach Dennis
I learn something everyday. Thanks On Jan 2, 2008 5:09 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Jan 2, 2008 5:20 PM, Zach Dennis [EMAIL PROTECTED] wrote: RSpec doesn't enforce strict-order mocking. Sure it does, if you ask it to: http://rspec.info/documentation/mocks

Re: [rspec-users] Do you think it would look cleaner?

2008-01-03 Thread Zach Dennis
On Jan 3, 2008 12:20 PM, Kerry Buckley [EMAIL PROTECTED] wrote: On 2 Jan 2008, at 22:09, David Chelimsky wrote: On Jan 2, 2008 5:20 PM, Zach Dennis [EMAIL PROTECTED] wrote: RSpec doesn't enforce strict-order mocking. Sure it does, if you ask it to: http://rspec.info/documentation

Re: [rspec-users] specs on private methods

2008-01-11 Thread Zach Dennis
stub or mock the object under test guideline? -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] specs on private methods

2008-01-11 Thread Zach Dennis
out existing objects from a global app content and assign them as instance variables. That is how we are getting reference to invitation manager. Zach On Jan 11, 2008 12:45 PM, Ben Mabey [EMAIL PROTECTED] wrote: Zach Dennis wrote: On Jan 11, 2008 11:56 AM, David Chelimsky [EMAIL PROTECTED

Re: [rspec-users] specs on private methods

2008-01-11 Thread Zach Dennis
it removes responsibility away from the controller, and it makes things much easier to test (and to understand IMO). And you have a very readable API, Zach On Jan 11, 2008 12:49 PM, Zach Dennis [EMAIL PROTECTED] wrote: We pass the required items in as method arguments. In the spirit of sharing code

Re: [rspec-users] specs on private methods

2008-01-11 Thread Zach Dennis
and before filters which were trying to do some form of authentication based on peeking at the sessions themselves or validating users. -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http

Re: [rspec-users] specs on private methods

2008-01-11 Thread Zach Dennis
) because we like to work with instances. We feel they are easier to test and refactor and it helps us avoid the temptation of adding class methods and instance methods which often times can lead to mixing multiple responsibilities onto an object. We're big fan of single responsibility. HTH, -- Zach

Re: [rspec-users] client first, top down, outside in, etc with rails

2008-01-29 Thread Zach Dennis
:) Pat ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users

Re: [rspec-users] Old Style Stories

2008-02-21 Thread Zach Dennis
story part is a method call, and I'm sure there are other things that could be suggested as well. -- Zach Dennis http://www.continuousthinking.com 0 - http://rspec.lighthouseapp.com/projects/5645/tickets/172-warn-or-fail-on-re-specified-when-then-clause 1 - http://www.continuousthinking.com

Re: [rspec-users] Old Style Stories

2008-02-22 Thread Zach Dennis
On Thu, Feb 21, 2008 at 11:40 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Thu, Feb 21, 2008 at 10:26 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Thu, Feb 21, 2008 at 9:07 PM, Zach Dennis As you mentioned David, Plain text is great for some situations, but so is writing

Re: [rspec-users] ActiveRecord, spec'ing find has right :order parameter

2008-03-05 Thread Zach Dennis
think it would be too hard. Are you just wanting Mocha parameter matching? User.should_receive(:find).with(:all, has_entry(:order = 'user.name ASC')) get 'index', :sort = 'up' -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing

Re: [rspec-users] [Stories] Login and subdomain

2008-03-07 Thread Zach Dennis
are third party components your site may have to integrate with that aren't realistic to be run for every story (for the most part, there are other exceptions as well I know). I would avoid stubbing core functionality related to your site, -- Zach Dennis http://www.continuousthinking.com

Re: [rspec-users] [Stories] Login and subdomain

2008-03-07 Thread Zach Dennis
___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman

Re: [rspec-users] Story testing views in isolation

2008-03-11 Thread Zach Dennis
act as view specs and stories act as stories. -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Story testing views in isolation

2008-03-11 Thread Zach Dennis
Corey, What part of the Story do you like that you want the designers to be exposed to? A higher level API, the plain text part (separation from implementation of the test), etc... ? Zach On Tue, Mar 11, 2008 at 8:39 AM, Zach Dennis [EMAIL PROTECTED] wrote: On Tue, Mar 11, 2008 at 8:03 AM

Re: [rspec-users] view spec on rails questions

2008-03-11 Thread Zach Dennis
___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users

Re: [rspec-users] RSpec view test for :partial with :locals?

2008-03-12 Thread Zach Dennis
://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Stories (well, integration tests) which aren't plain text

2008-03-13 Thread Zach Dennis
-- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Problems with form_for and partials

2008-03-14 Thread Zach Dennis
Linowes [EMAIL PROTECTED] wrote: On Mar 12, 2008, at 5:47 PM, David Chelimsky wrote: On Wed, Mar 12, 2008 at 9:43 PM, Zach Dennis [EMAIL PROTECTED] wrote: You can use mocha parameter matching to match on anything where your form builder would be passed in. You could also use

Re: [rspec-users] Disabling a set of tests?

2008-03-14 Thread Zach Dennis
mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Am I off track on my testing?

2008-03-14 Thread Zach Dennis
On Fri, Mar 14, 2008 at 2:08 PM, __iso __ [EMAIL PROTECTED] wrote: Zach Dennis wrote: When I write software for myself I tend to flip flop. Sometimes I am writing things to learn or play and I don't test. I did that on a recent small project and I was amazed at how fast I was able

Re: [rspec-users] Am I off track on my testing?

2008-03-15 Thread Zach Dennis
On Sat, Mar 15, 2008 at 5:43 PM, Ben Mabey [EMAIL PROTECTED] wrote: Zach Dennis wrote: Can someone change this implementation and still have your tests pass, but have the implementation be broken? If they can then yes it is worth the 40 lines. Pat mentioned that he uses very skinny

Re: [rspec-users] Specifing methods in a steps_for block

2008-03-17 Thread Zach Dennis
. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http

Re: [rspec-users] Specifing methods in a steps_for block

2008-03-17 Thread Zach Dennis
On Mon, Mar 17, 2008 at 9:59 AM, Bart Zonneveld [EMAIL PROTECTED] wrote: On 17-mrt-2008, at 14:51, Zach Dennis wrote: I have been putting helper methods inside of my own modules and then including them in RSpec::Story::World, which included in the context that stories are defined

Re: [rspec-users] should have_tag outside Rails

2008-03-17 Thread Zach Dennis
___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo

Re: [rspec-users] Why not MockEverthing or why use fixtures for all tests?

2008-03-18 Thread Zach Dennis
on interaction-based vs state-based testing -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] rescue

2008-03-18 Thread Zach Dennis
not 100% this is what you were asking, hopefully you were just looking for confirmation, -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Pending Scenarios

2008-03-21 Thread Zach Dennis
they might need it. Zach -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] sharing story steps

2008-03-21 Thread Zach Dennis
you like. I prefer the first one. I prefer the first one as well, -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] How do you mock an object that you don't have access to?

2008-03-28 Thread Zach Dennis
/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Welcome Pat Maddox

2008-04-05 Thread Zach Dennis
from him in the time to come. Welcome onboard, Pat! Thank you for the kind words, everyone. Pat ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http

Re: [rspec-users] newbq: Organizing your stories

2008-04-10 Thread Zach Dennis
. -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Is testing output within content_for possible?

2008-04-20 Thread Zach Dennis
://rubyforge.org/pipermail/rspec-users/2007-June/001954.html That should do it! Thanks Bryan -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach

Re: [rspec-users] how do i remove duplication from my steps in story runner?

2008-04-23 Thread Zach Dennis
with my contrived little example - for my real app I really do need to be able to factor out some helper methods... ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http

Re: [rspec-users] Spec the Application Controller application.rb

2008-04-25 Thread Zach Dennis
://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] ANN: RSpactor 0.9.10 (aka. beta)

2008-04-28 Thread Zach Dennis
://www.coreyhaines.com The Internet's Premiere source of information about Corey Haines ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com

Re: [rspec-users] Can you use RSpec to test initializers?

2008-05-07 Thread Zach Dennis
== smtp.example.com -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Rspec Stories / Selenium Nightmare

2008-05-08 Thread Zach Dennis
-- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com ___ rspec

Re: [rspec-users] Rspec Stories / Selenium Nightmare

2008-05-08 Thread Zach Dennis
discussion lately and should see some new life soon. On May 8, 2008, at 10:10 AM, Zach Dennis wrote: I've had really iffy luck with Selenium plugins in the past (selenium-on-rails, seleniumfu_rc, selenium_rc, etc.) so I've started to write a RailsSeleniumStory. I also had to remove

Re: [rspec-users] Are you writing imperative or declarative scenarios in your stories?

2008-05-11 Thread Zach Dennis
the declarative route all of your code is pushed together without the granular step boundaries, forcing you to face up and extract out methods which reveal the intent of the step. -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec

Re: [rspec-users] Reuse steps like a method call

2008-05-14 Thread Zach Dennis
Is this by intention or just a side effect of the current implementation? -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Specifying certain tables NOT to be cleared each example?

2008-05-22 Thread Zach Dennis
___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users

Re: [rspec-users] xhr :post giving wrong number of arguments on rails 2.1?

2008-06-05 Thread Zach Dennis
://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Stopping example execution?

2008-06-30 Thread Zach Dennis
application. When they hurt, they're telling you something isn't right and that it should be addressed, 0 - http://en.wikipedia.org/wiki/Congenital_insensitivity_to_pain_with_anhidrosis -- Zach Dennis http://www.continuousthinking.com ___ rspec-users

Re: [rspec-users] Stopping Example Execution?

2008-07-02 Thread Zach Dennis
/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] auto-generated descriptions

2008-07-07 Thread Zach Dennis
it out into some sort of module or helper and tell people to include it in their config.* block if they want to use it? +1 -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org

Re: [rspec-users] Not sure why this controller spec isn't working

2008-07-07 Thread Zach Dennis
are probably wanting to be dealing with the same @notes object in each of these cases. Zach -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] controller vars for examples

2008-07-09 Thread Zach Dennis
/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] rspec render :update

2008-07-12 Thread Zach Dennis
you can refactor that into using Renderer objects. For more information see Extract Renderer from RJS in the Rails Refactoring Catalog: http://assets.en.oreilly.com/1/event/6/Refactoring%20Your%20Rails%20Application%20Paper.pdf -- Zach Dennis http://www.continuousthinking.com

Re: [rspec-users] Specifying a few valid values

2008-07-17 Thread Zach Dennis
/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] cheat install_rspec_rails -x

2008-08-01 Thread Zach Dennis
Should this be valuable for anyone else, I've forked cheat (hoping for it to get pulled) to allow cheat to be used for execution. For example: cheat install_rspec_rails --execute OR cheat install_rspec_rails --x http://www.continuousthinking.com/2008/8/1/cheat-execute -- Zach Dennis http

Re: [rspec-users] Spec'ing correct use of Timeout

2008-08-02 Thread Zach Dennis
. -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Can't access actions of a singular nested resource

2008-08-04 Thread Zach Dennis
do |format| format.html format.xml end end end ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com http

Re: [rspec-users] Someone please name this matcher for me

2008-08-06 Thread Zach Dennis
, 3, 1, 4, 2]) Since consist means to be composed or made up of, which matches the usage. To me it reads like, this thing should be made up of these other things. WDYT? -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com

Re: [rspec-users] Can't test for page content after a redirect

2008-08-07 Thread Zach Dennis
/javascript if md=response.body.match(/window.location.href = ([^]+)/) get md.captures.first end end true end -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users

Re: [rspec-users] embedding variable in a regex

2008-08-08 Thread Zach Dennis
sub-expression for PROGRAM|PROGRAMMES so it doesn't get captured (and thus passed in as a block parameter). Try this: Given /a (?:PROGRAM|PROGRAMMES) title of '([^']+)'/ do |title| end Which should match the step with the name Given a PROGRAM title of 'foo bar baz thingy majoo' -- Zach

[rspec-users] WDYT, simple, anonymous story listeners?

2008-08-12 Thread Zach Dennis
= lambda { |*args| Generate.user(:login = normal user) }, :run_ended = lambda { |*args| User.destroy_all }, :method_missing = lambda { |*a| } ) -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users

Re: [rspec-users] WDYT, simple, anonymous story listeners?

2008-08-12 Thread Zach Dennis
On Wed, Aug 13, 2008 at 12:24 AM, Tero Tilus [EMAIL PROTECTED] wrote: 2008-08-12 20:25, Zach Dennis: Sometimes I don't have a full need to make a class to do something, How's that _essentially_ different from making a class or extending an existing class? I am not knowledgeable enough

Re: [rspec-users] WDYT, simple, anonymous story listeners?

2008-08-13 Thread Zach Dennis
://github.com/zdennis/functional_struct/tree/master -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] WDYT, simple, anonymous story listeners?

2008-08-13 Thread Zach Dennis
On Wed, Aug 13, 2008 at 8:29 AM, aslak hellesoy [EMAIL PROTECTED] wrote: On Wed, Aug 13, 2008 at 2:25 AM, Zach Dennis [EMAIL PROTECTED] wrote: Sometimes I don't have a full need to make a class to do something, yet I want something readable and concise. This is influenced from the joys

Re: [rspec-users] How do you stub out callbacks?

2008-08-14 Thread Zach Dennis
is what spec are you wanting to stub it out in? -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Autotest setup to run Story Runner?

2008-08-14 Thread Zach Dennis
was written in a way that allowed you to attach listeners (and remote monitors) to it over the network. -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users@rubyforge.org http

Re: [rspec-users] Stubbing calls to the command line

2008-08-14 Thread Zach Dennis
file and pull it down from http://localhost:3000/public/dummy;. -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] How much test data to use in specs

2008-08-25 Thread Zach Dennis
be_valid prop.should have(1).error_on(:email) end end end -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] How much test data to use in specs

2008-08-25 Thread Zach Dennis
On Mon, Aug 25, 2008 at 2:50 PM, Nick Hoffman [EMAIL PROTECTED] wrote: On 2008-08-25, at 13:29, Zach Dennis wrote: I might do something like the following... describe Property, email validations do [[EMAIL PROTECTED], can't start with a digit, [EMAIL PROTECTED], can't end with a digit

Re: [rspec-users] stub_model() and ActiveRecord Associations

2008-08-26 Thread Zach Dennis
(that requires hitting the database) which is less dirty IMO than modifying the object you're focusing on is: comments = [stub_model(Target)] @target.comments = comments -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com -- Zach Dennis http://www.continuousthinking.com

Re: [rspec-users] stub_model() and ActiveRecord Associations

2008-08-27 Thread Zach Dennis
your expectation for :merge_in. -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] array_including()

2008-08-27 Thread Zach Dennis
On Wed, Aug 27, 2008 at 12:28 PM, Matt Wynne [EMAIL PROTECTED] wrote: On a similar vein, is there a neater way to express: assigns[:events].include?(@event_1).should be_true assigns[:events].should include(@event_1) -- Zach Dennis http://www.continuousthinking.com http

Re: [rspec-users] story runner not running on build machine

2008-08-28 Thread Zach Dennis
guess is that is not what you want.This is assuming your all.rb file looked like: dir = File.dirname(__FILE__) Dir[File.expand_path(#{dir}/**/*.rb)].uniq.each do |file| require file end -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com

Re: [rspec-users] Application-wide spec_helper method

2008-08-28 Thread Zach Dennis
rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec

[rspec-users] webrat question, form without buttons

2008-09-03 Thread Zach Dennis
Can you submit a form that has no submit button/image? -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] webrat question, form without buttons

2008-09-03 Thread Zach Dennis
On Wed, Sep 3, 2008 at 12:40 PM, Nick Hoffman [EMAIL PROTECTED] wrote: On 2008-09-03, at 12:06, Zach Dennis wrote: Can you submit a form that has no submit button/image? You can submit a form using Javascript. That's why we don't have submit buttons. =) But in the context of webrat

Re: [rspec-users] webrat question, form without buttons

2008-09-03 Thread Zach Dennis
On Wed, Sep 3, 2008 at 1:31 PM, Nick Hoffman [EMAIL PROTECTED] wrote: On 2008-09-03, at 13:15, Zach Dennis wrote: On Wed, Sep 3, 2008 at 12:40 PM, Nick Hoffman [EMAIL PROTECTED] wrote: You can submit a form using Javascript. That's why we don't have submit buttons. =) But in the context

Re: [rspec-users] webrat question, form without buttons

2008-09-03 Thread Zach Dennis
On Wed, Sep 3, 2008 at 6:21 PM, Ben Mabey [EMAIL PROTECTED] wrote: Jarkko Laine wrote: On 3.9.2008, at 19.38, Zach Dennis wrote: On Wed, Sep 3, 2008 at 1:31 PM, Nick Hoffman [EMAIL PROTECTED] wrote: On 2008-09-03, at 13:15, Zach Dennis wrote: On Wed, Sep 3, 2008 at 12:40 PM, Nick Hoffman

Re: [rspec-users] Four Question From an RSpec Baby - Give me something to chew

2008-09-04 Thread Zach Dennis
as expected, make sure any collaborators that need to be implemented are. Then use my integration tests to make sure everything is wired up correctly together. That's just me though, -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com

Re: [rspec-users] Best practices for sharing state between story steps?

2008-09-07 Thread Zach Dennis
/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users

Re: [rspec-users] Best practices for sharing state between story steps?

2008-09-09 Thread Zach Dennis
-for-nested-transactions -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Growl notifications don't work each time??

2008-09-12 Thread Zach Dennis
any documentation on it. Also - why does it only work on OS X.5? Because it relies on the File System Events API which was introduced in 10.5. -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list

Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-09-15 Thread Zach Dennis
! Kudos to all the work you've been doing providing goodness for the community, -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec

Re: [rspec-users] w3 validation

2008-09-15 Thread Zach Dennis
. Rather than uploading you could use the ruby tidy bindings to do offline validation which would most likely be much faster. See http://tidy.rubyforge.org/ for more information. -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com

Re: [rspec-users] Cucumber - Ambiguous steps

2008-09-16 Thread Zach Dennis
... K-12. ;) -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] RSpec story failing because create is not rendering 'show'

2008-09-16 Thread Zach Dennis
is product[name] and I can't tell from what you posted if you have a label name. http://github.com/brynary/webrat/tree/master/lib/webrat/core/scope.rb Zach -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users

Re: [rspec-users] Shoulda

2008-09-30 Thread Zach Dennis
mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org

Re: [rspec-users] Shoulda

2008-09-30 Thread Zach Dennis
. Zach On Tue, Sep 30, 2008 at 8:57 AM, Zach Dennis [EMAIL PROTECTED] wrote: On Tue, Sep 30, 2008 at 8:41 AM, Andy Freeman [EMAIL PROTECTED] wrote: Are you willing to provide a simple example? I'm using the same example as the articled you linked to originally as the base. This way you should

  1   2   3   4   >