[rspec-users] Need help using URL helpers in controller tests

2008-10-09 Thread Christopher Bailey
nil. I'm wondering if this is due to being run under the test environment or what I'm missing/not realizing, etc. What's strange is that some of the restful resource route url helpers work fine. Can anyone clue me in? -- Christopher Bailey Cobalt Edge LLC http://cobaltedge

Re: [rspec-users] Need help using URL helpers in controller tests

2008-10-10 Thread Christopher Bailey
, Matt Wynne <[EMAIL PROTECTED]> wrote: > > On 9 Oct 2008, at 20:24, Christopher Bailey wrote: > > I have a controller test, where I want to do a GET on a page. Our URL's >> are complex, and need to be correct (duh, but we allow some slop, but that >> causes a redirect

Re: [rspec-users] any way to have a different SOUND from growl for a 'pass' rather than a 'fail' when using "./script/autospec" ???

2008-11-10 Thread Christopher Bailey
t; Is there any way to have a different SOUND from growl for a 'pass' > rather than a 'fail' when using "./script/autospec" ??? > > thanks > ___ > rspec-users mailing list > rspec-users@rubyfo

[rspec-users] View tests and fragment caching issue

2008-12-05 Thread Christopher Bailey
it: <% cache({:fragment => 'similar_deals'}, :expires_in => 24.hours) do %> Can someone point me in the right direction for how to deal with this? -- Christopher Bailey Cobalt Edge LLC http://cobaltedge.com ___ rspec-users

[rspec-users] Cucumber/Webrat fails to find fields when run after specs

2009-02-04 Thread Christopher Bailey
nburkert/cruisecontrolrb.git). Has anyone else seen this kind of thing, any ideas? My versions: ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0] rails (2.2.2) rspec (1.1.11) rspec-rails (1.1.11) aslakhellesoy-cucumber (0.1.99.19) nokogiri (1.1.1) webrat (0.4.1) -- Christopher Bailey Co

Re: [rspec-users] Cucumber/Webrat fails to find fields when run after specs

2009-02-04 Thread Christopher Bailey
On Wed, Feb 4, 2009 at 12:54 PM, aslak hellesoy wrote: > On Wed, Feb 4, 2009 at 7:21 PM, Christopher Bailey > wrote: > > I've been battling the strangest behavior, and hoping someone can shed > some > > light... > > I am using RSpec for MVC tests, and then Cuc

Re: [rspec-users] Cucumber/Webrat fails to find fields when run after specs

2009-02-04 Thread Christopher Bailey
w alternatives to calling that task specifically, but I think rake has seen them all as dependencies or what not already. On Wed, Feb 4, 2009 at 9:47 PM, Mike Gaffney wrote: > Are you running selenium or normal webrat (eg config.mode = :rails or > config.mode = :selenium)? > > > Christoph

Re: [rspec-users] Cucumber/Webrat fails to find fields when run after specs

2009-02-05 Thread Christopher Bailey
I don't use fixtures or have any anywhere. On Wed, Feb 4, 2009 at 11:32 PM, Mark Wilden wrote: > On Wed, Feb 4, 2009 at 11:08 PM, Christopher Bailey > wrote: > >> >> My primary residual concern is that the DB isn't clean after the specs >> run, which

Re: [rspec-users] Cucumber/Webrat fails to find fields when run after specs

2009-02-05 Thread Christopher Bailey
e. I can resort to doing a shell command, but what a hack, seems like there has to be better way. On Thu, Feb 5, 2009 at 1:23 AM, aslak hellesoy wrote: > On Thu, Feb 5, 2009 at 1:43 AM, Christopher Bailey > wrote: > > On Wed, Feb 4, 2009 at 12:54 PM, aslak hellesoy < > aslak.he

[rspec-users] MVC testing vs. models & Webrat+RailsStory?

2008-06-19 Thread Christopher Bailey
h job. I would then consider going to Selenium to test some of the detailed JavaScript as needed. Thoughts? What am I missing, or what are the downsides of such an approach? -- Christopher Bailey Cobalt Edge LLC http://cobaltedge.com ___ rspec-users mail

Re: [rspec-users] MVC testing vs. models & Webrat+RailsStory?

2008-06-19 Thread Christopher Bailey
Jun 19, 2008 at 8:41 AM, Kyle Hargraves <[EMAIL PROTECTED]> wrote: > On Thu, Jun 19, 2008 at 9:31 AM, Christopher Bailey > <[EMAIL PROTECTED]> wrote: >> Specifically, I'm wondering, or contemplating, if I do unit tests for >> my models, and then I use WebRat plus

Re: [rspec-users] MVC testing vs. models & Webrat+RailsStory?

2008-06-19 Thread Christopher Bailey
Just found answer to one of my questions below on being able to run stories in TextMate. The new bundle for stories looks cool: http://github.com/bmabey/rspec-story-tmbundle/tree/master On Thu, Jun 19, 2008 at 9:56 AM, Christopher Bailey <[EMAIL PROTECTED]> wrote: > Kyle, thanks much fo

[rspec-users] Dealing with dependent data

2008-06-25 Thread Christopher Bailey
.count.should > 1" or more specific depending on my needs, etc. So, what are folks doing in this regard, any tips, recommendations, suggestions, etc.? Is there some way to indicate dependencies like this that I simply don't know about? -- Christop

Re: [rspec-users] Dealing with dependent data

2008-06-25 Thread Christopher Bailey
ylor <[EMAIL PROTECTED]> wrote: > > On Jun 25, 2008, at 9:38 PM, Mikel Lindsaar wrote: > >> On Thu, Jun 26, 2008 at 4:37 AM, Christopher Bailey >> <[EMAIL PROTECTED]> wrote: >>> >>> If there's already been a thread on this, let me know

Re: [rspec-users] Dealing with dependent data

2008-06-25 Thread Christopher Bailey
ls via the view (I use Webrat), and such, so that is definitely real, and that to me covers that case sufficiently. On Wed, Jun 25, 2008 at 7:38 PM, Mikel Lindsaar <[EMAIL PROTECTED]> wrote: > On Thu, Jun 26, 2008 at 12:18 PM, Christopher Bailey > <[EMAIL PROTECTED]> wrote: >

[rspec-users] TextMate language bindings/modes

2008-06-27 Thread Christopher Bailey
ill be that way. It seems this is one of the core problems - the ".rb" binding is greedy - whoever sets it last sets it for everything, and anytime it changes, it changes for all. -- Christopher Bailey Cobalt Edge LLC http://cobaltedge.com ___

Re: [rspec-users] TextMate language bindings/modes

2008-06-27 Thread Christopher Bailey
require some helpers or what not first, so that's why the standard rule there wasn't picking those up. On Fri, Jun 27, 2008 at 1:03 PM, Ben Mabey <[EMAIL PROTECTED]> wrote: > Christopher Bailey wrote: >> >> I'm wondering if anyone has TextMate working really

[rspec-users] Cookies - how to set in controller specs?

2008-07-01 Thread Christopher Bailey
hat my actual code works as I've run through this by directly testing in the browser, but of course I want specs to test it. Can someone show a test of setting a cookie, getting a page/action (and then optionally testing cookie after that)? -- Christopher Bai

Re: [rspec-users] Cookies - how to set in controller specs?

2008-07-02 Thread Christopher Bailey
t; however, as I've been known to try to set a cookie in an example using > cookies when I should have been using request.cookies. So I try to > keep them explicit. > > HTH, > David > ___ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/m

Re: [rspec-users] Cookies - how to set in controller specs?

2008-07-02 Thread Christopher Bailey
On Wed, Jul 2, 2008 at 9:41 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Jul 2, 2008, at 11:15 AM, Christopher Bailey wrote: > >> On Wed, Jul 2, 2008 at 4:06 AM, David Chelimsky <[EMAIL PROTECTED]> >> wrote: >> >>> >>> This is just on

Re: [rspec-users] Cookies - how to set in controller specs?

2008-07-02 Thread Christopher Bailey
just "cookies" was a hash with values, but alas, that's what was happening. So, thank you very much for your time (that I essentially wasted :( On Wed, Jul 2, 2008 at 9:57 AM, Christopher Bailey <[EMAIL PROTECTED]> wrote: > On Wed, Jul 2, 2008 at 9:41 AM, David Chelimsky <

Re: [rspec-users] Cookies - how to set in controller specs?

2008-07-02 Thread Christopher Bailey
On Wed, Jul 2, 2008 at 10:52 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Jul 2, 2008, at 12:42 PM, Christopher Bailey wrote: > >> First, nevermind! Oy! I finally figured it out. The reason it >> wasn't working in my controller code was that I was checkin

[rspec-users] How to do HTTP Basic Authentication in stories with WebRat?

2008-07-16 Thread Christopher Bailey
referer, so that you can use visits on actions that do "redirect_to :back"), but prior to me doing that, I wanted to see if there was a solution I wasn't aware of. -- Christopher Bailey Cobalt Edge LLC http://cobaltedge.com ___ rspec-use

Re: [rspec-users] HTML Story Formatter

2008-07-24 Thread Christopher Bailey
browser) that > doesn't really do anything. > > Maybe it's time to get rid of that for now and standardize on where > this stuff goes :) > > HTH, > David > > >> >> Cheers, >> Jon >> >> ___ >> r

[rspec-users] Webrat visits fails, but works in browser

2008-07-25 Thread Christopher Bailey
ed to see if that made a difference). Any suggestions welcome, thanks. -- Christopher Bailey Cobalt Edge LLC http://cobaltedge.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Webrat visits fails, but works in browser

2008-07-25 Thread Christopher Bailey
Ok, thanks. I have figured it out of course by now :) It was an issue with RedCloth. On Fri, Jul 25, 2008 at 5:56 AM, Bart Zonneveld <[EMAIL PROTECTED]> wrote: > > On 25 jul 2008, at 10:11, Christopher Bailey wrote: > >> I'm wondering if folks have suggestio

Re: [rspec-users] Straw Poll: How are you using plain text stories (in rails)?

2008-08-06 Thread Christopher Bailey
er from anyone out there using these tools would be > great in order to get a feel for the current state of the art, and some > fresh fuel for my googling! > > Sorry if this post is a bit rambling... thanks for bearing with me as I > scramble up the learning curve! > > cheers

Re: [rspec-users] uploads with webrat in stories

2008-08-29 Thread Christopher Bailey
gt; > csv_file = . > file_to_upload = ActionController::TestUploadedFile.new(csv_file.path, > Mime::CSV) > post my_path, "import_file" => file_to_upload > > > In my story I didn't have other fields in the form so I didn't bother to > investigate why webrat wasn't working..

Re: [rspec-users] GiT and RSpec

2008-09-02 Thread Christopher Bailey
t;> <--- >> >> Now, when anyone pulls from the canonical repository they will get Rspec >> and >> Rspec-on-Rails as well, but as submodules pulled directly from the RSpec >> repositories. Further, updating all submodules t

[rspec-users] Mocking a 3rd party call, but with a few exceptions

2008-09-05 Thread Christopher Bailey
tub" it or whatever you'd call it? -- Christopher Bailey Cobalt Edge LLC http://cobaltedge.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Helpers that call helpers not working in specs?

2008-09-15 Thread Christopher Bailey
t;). How do I make it so that all the dependencies or Rails' included stuff is found? -- Christopher Bailey Cobalt Edge LLC http://cobaltedge.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Helpers that call helpers not working in specs?

2008-09-15 Thread Christopher Bailey
y method/helper. It will only find markaby if I remove the leading "helper." from in front of the call, and also include ApplicationHelper (including this, when using helper. doesn't remedy it). On Mon, Sep 15, 2008 at 11:15 AM, David Chelimsky <[EMAIL PROTECTED]>wrote: > On

Re: [rspec-users] Helpers that call helpers not working in specs?

2008-09-15 Thread Christopher Bailey
Thanks, that did the trick. And for including ApplicationHelper, I would say it should include it - because that would parallel Rails' standard behavior. On Mon, Sep 15, 2008 at 3:34 PM, David Chelimsky <[EMAIL PROTECTED]>wrote: > On Mon, Sep 15, 2008 at 4:06 PM, Christopher Ba

Re: [rspec-users] Mocking a 3rd party call, but with a few exceptions

2008-09-16 Thread Christopher Bailey
return(fake_geocode) end end Then, in tests where I want real geocoding, I just set @do_not_mock_geocoding to true. On Fri, Sep 5, 2008 at 8:36 PM, Pat Maddox <[EMAIL PROTECTED]> wrote: > On Fri, Sep 5, 2008 at 2:15 PM, Christopher Bailey <[EMAIL PROTECTED]> > wrote: &

Re: [rspec-users] webrat the way to go?

2008-09-17 Thread Christopher Bailey
o get comfortable with writing stories. > > I know I need to learn this, so I want to focus my efforts where I > will get the most return on my time. > > Thanks > > PS. I am REALLY looking forward to the RSpec book! >

Re: [rspec-users] webrat the way to go?

2008-09-24 Thread Christopher Bailey
that in RSpec 1.1.5, Story Runner will be replaced by Cucumber, so > isn't learning Cucumber compulsory? > -- > Posted via http://www.ruby-forum.com/. > ___ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.o