Re: [rspec-users] Login testing ideas

2007-10-11 Thread Priit Tamboom
> describe VideosController, " requesting /videos/1 using GET" do > include UserSpecHelpers > > before(:each) do > login_as mock_user > mock_user.stub!(:access_video?).and_return true > @mock_video = mock_model(Video) > Video.stub!(:find).and_return @mock_video > end > > def

Re: [rspec-users] [RSpec] Question about using TextMate Bundle...

2007-10-11 Thread David Chelimsky
On 10/11/07, Mel Riffe <[EMAIL PROTECTED]> wrote: > Thanks for the quick response. > > I followed the directions but I'm still getting errors trying to run the > spec from within TM. > > I'm going to start fresh - uninstall everything and try again. > > One thing I did notice is that there were thr

Re: [rspec-users] [RSpec] Question about using TextMate Bundle...

2007-10-11 Thread Mel Riffe
Thanks for the quick response. I followed the directions but I'm still getting errors trying to run the spec from within TM. I'm going to start fresh - uninstall everything and try again. One thing I did notice is that there were three different ways to install stuff: - gem install rspec -

Re: [rspec-users] [RSpec] Question about using TextMate Bundle...

2007-10-11 Thread David Chelimsky
On 10/11/07, Mel Riffe <[EMAIL PROTECTED]> wrote: > Hey Everyone, > > First time poster! woot! > > Can someone please point me to a Wiki, FAQ, web page, that I can reference > to help me debug why my installation of the TextMate Bundle doesn't work? Start here: http://rspec.rubyforge.org/document

[rspec-users] [RSpec] Question about using TextMate Bundle...

2007-10-11 Thread Mel Riffe
Hey Everyone, First time poster! woot! Can someone please point me to a Wiki, FAQ, web page, that I can reference to help me debug why my installation of the TextMate Bundle doesn't work? Am I supposed to install the gem, then install the plugins into a project, then install the bundle before th

Re: [rspec-users] Login testing ideas

2007-10-11 Thread Pat Maddox
On 10/11/07, barsalou <[EMAIL PROTECTED]> wrote: > I've been going through Pat's example story and noticed that there was > no checking for a bad login. I assume this is because that would have > made the article bigger and more complicated than it needed to be. > > So the question that comes of o

[rspec-users] Login testing ideas

2007-10-11 Thread barsalou
I've been going through Pat's example story and noticed that there was no checking for a bad login. I assume this is because that would have made the article bigger and more complicated than it needed to be. So the question that comes of of this is: How do folks normally handle the negative ca

Re: [rspec-users] Incompatibility Issues after updating CURRENT

2007-10-11 Thread George Anderson
> So they should be aligning just fine. Sounds like something's wrong > when you update from piston. Not sure how or why. Piston persists any changes you make to the "working copy." Perhaps someone was poking around in version.rb (not me of course ;)) and it subsequently got flagged as being chan

Re: [rspec-users] Incompatibility Issues after updating CURRENT

2007-10-11 Thread David Chelimsky
On 10/11/07, George Anderson <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using piston to manage rspec and rspec_on_rails in vendor/plugins. > > > ~/work/simplify_md $ piston st vendor/plugins/ > vendor/plugins/rspec > (svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec) >

[rspec-users] Incompatibility Issues after updating CURRENT

2007-10-11 Thread George Anderson
Hi, I'm using piston to manage rspec and rspec_on_rails in vendor/plugins. ~/work/simplify_md $ piston st vendor/plugins/ vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec) vendor/plugins/rspec_on_rails (svn://rubyforge.org/var/svn/rspec/tags/C

Re: [rspec-users] Autotest and RSpect

2007-10-11 Thread Wes Gamble
Oh one more thing, you need to remove the --colour option completely from your spec.opts. The other stuff can stay - don't know why, but it matters... Daniel Mantilla wrote: > Wes, I removed the spec.opts file and now I see the results of my specs, > but in plain text, no coloring. Well, at le

Re: [rspec-users] Autotest and RSpect

2007-10-11 Thread Daniel Mantilla
Wes, I removed the spec.opts file and now I see the results of my specs, but in plain text, no coloring. Well, at least I know it's running. I also tried playing with .autotest, adding/removing require's to no avail. If you ever get the nice formatting working please let me know. Thanks, Dani

Re: [rspec-users] Autotest and RSpect

2007-10-11 Thread Wes Gamble
Daniel, I ran into this as well - see my posts here: http://chrisdpratt.com/2007/09/04/rails-rspec-autotest-redgreen-and-snarl-reasons-i-dont-like-windows/ There's a bug in ZenTest: http://rubyforge.org/tracker/index.php?func=detail&aid=14203&group_id=419&atid=1678 The fix is to remove the sma

[rspec-users] Autotest and RSpect

2007-10-11 Thread Daniel Mantilla
I managed to have Autotest running on my windows box. Apparently all is working but every time I know there is an error a new line is generated, no error messages or anything is sent to the console. I am using pastie now (thanks to David), please go to: http://pastie.caboo.se/106155 Daniel -- Po

Re: [rspec-users] RSpec seems to be having a hard time loading Helper clas

2007-10-11 Thread Chris Olsen
That was the problem. I didn't even occur to me that it was looking for that helper class. Thanks for the help. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspe

Re: [rspec-users] Rspec Textmate bundle errors

2007-10-11 Thread David Chelimsky
On 10/11/07, Brandon Keepers <[EMAIL PROTECTED]> wrote: > > On Oct 10, 2007, at 9:20 PM, David Chelimsky wrote: > > > On 10/10/07, Alastair Moore <[EMAIL PROTECTED]> wrote: > >> > >> On 11 Oct 2007, at 01:03, David Chelimsky wrote: > >> > >>> We've been making some changes in trunk, so if you're us

Re: [rspec-users] Rspec Textmate bundle errors

2007-10-11 Thread Brandon Keepers
On Oct 10, 2007, at 9:20 PM, David Chelimsky wrote: > On 10/10/07, Alastair Moore <[EMAIL PROTECTED]> wrote: >> >> On 11 Oct 2007, at 01:03, David Chelimsky wrote: >> >>> We've been making some changes in trunk, so if you're using trunk >>> make >>> sure that you have the same revision of rspec

Re: [rspec-users] RSpec seems to be having a hard time loading Helper classes

2007-10-11 Thread Matt Patterson
On 10 Oct 2007, at 22:45, Chris Olsen wrote: > I am getting the error when I run the command: rake spec > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ > active_support/dependencies.rb:266:in > `load_missing_constant': uninitialized constant ProjectsHelper > "spec/helpers/projects_