[rspec-users] undefined method `register' for Polyglot:Module

2009-11-18 Thread Joe Van Dyk
../lib/cucumber.rb:6 -- Joe Van Dyk http://fixieconsulting.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] undefined method `register' for Polyglot:Module

2009-11-18 Thread Joe Van Dyk
Oh, hm. Looks like there's a lot of projects with the name 'polyglot'. Hm. On Wed, Nov 18, 2009 at 11:12 AM, Joe Van Dyk wrote: > Getting this error.  I have the treetop, polyglot, and rspec libraries > in the load_path (not installed as a gem).  Any ideas?  What defines

[rspec-users] Using integrate_views for all controller specs

2011-01-17 Thread Joe Van Dyk
Is there a way to always use integrate_views for all controller specs? I hate having to remember to insert that line into each one. Thanks, Joe ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] RSPEC how to post to a controller? What's wrong with this?

2011-03-23 Thread Joe Van Dyk
Before_filters preventing it? On Mar 22, 2011, at 11:06 PM, Mobyye wrote: I'm trying to post to my controller in RSPEC by doing: it "should store create an IncomingMail record" do lambda { post :create, :from => 'xx', :to => 'xx', :cc => 'xx',

[rspec-users] problem running cucumber

2008-10-04 Thread Joe Van Dyk
When I run 'rake features', this is the output I get: /usr/local/bin/ruby -I "/home/joe/projects/voxy/vendor/plugins/cucumber/lib" "/home/joe/projects/voxy/vendor/plugins/cucumber/bin/cucumber" --format pretty --require features/steps/env.rb --require features/steps/request_steps.rb --require feat

[rspec-users] testing javascript-heavy websites

2009-01-22 Thread Joe Van Dyk
We're starting to work on some javascript-heavy websites, and even some flash/flex based ones as well. What's the current hotness in automatically testing those types of websites? Does cucumber hook up to selenium now? I thought I saw that webrat did. Any recommended resources? Joe ___

Re: [rspec-users] testing javascript-heavy websites

2009-01-25 Thread Joe Van Dyk
How does http://celerity.rubyforge.org/ compare to the options mentioned? On Thu, Jan 22, 2009 at 6:46 PM, Joe Van Dyk wrote: > We're starting to work on some javascript-heavy websites, and even > some flash/flex based ones as well. > > What's the current hotness in autom

[rspec-users] testing multiple sessions in cucumber/webrat

2009-02-28 Thread Joe Van Dyk
Is it possible to have a scenario where you are testing the interaction between two different session? i.e. Given User A clicks this link Then User B should see this It used to be possible, but don't know if it still is. Joe ___ rspec-users mailing li

[rspec-users] cucumber ambiguous match

2009-02-28 Thread Joe Van Dyk
Ambiguous match of "a volunteer 'Joe' from 'Cincinnati'": features/step_definitions/user_steps.rb:1:in `/^a volunteer '(.*)'$/' features/step_definitions/user_steps.rb:5:in `/^a volunteer '(.*)' from '(.*)'$/' Don't see how that's ambiguous.

Re: [rspec-users] cucumber ambiguous match

2009-02-28 Thread Joe Van Dyk
nevermind, I see it. On Sat, Feb 28, 2009 at 12:59 PM, Joe Van Dyk wrote: >      Ambiguous match of "a volunteer 'Joe' from 'Cincinnati'": > >      features/step_definitions/user_steps.rb:1:in `/^a volunteer '(.*)'$/' >      fe

Re: [rspec-users] testing multiple sessions in cucumber/webrat

2009-03-01 Thread Joe Van Dyk
hat, given a certain state (or again, > whatever is supposed to happen), then User B sees whatever. > HTH, > BJ Clark > > On Sat, Feb 28, 2009 at 12:04 PM, Joe Van Dyk wrote: >> >> Is it possible to have a scenario where you are testing the >> interaction between two di

[rspec-users] Features running in development mode

2009-05-16 Thread Joe Van Dyk
Hi, On my Rails app, when I run 'rake features', it runs it in development mode. Which is weird. And messes up my development database. What can I do to force it to run in test mode? Joe ___ rspec-users mailing list rspec-users@rubyforge.org http://r

[rspec-users] having autospec run tests?

2009-06-03 Thread Joe Van Dyk
Hi, On one project, I have cucumber features and test/unit (well, i guess activesupport::testcase) tests. I really like how: AUTOFEATURE=true autospec works on my projects that use rspec and cucumber. Can I get that same behavior, but with my tests in the tests directory? Joe __

Re: [rspec-users] having autospec run tests?

2009-06-03 Thread Joe Van Dyk
Wed, Jun 3, 2009 at 10:28 AM, Stephen Eley wrote: > On Wed, Jun 3, 2009 at 1:01 PM, Joe Van Dyk wrote: >> >> I really like how: >> AUTOFEATURE=true autospec >> works on my projects that use rspec and cucumber. >> >> Can I get that same behavior, but with

[rspec-users] html::document errors

2009-06-23 Thread Joe Van Dyk
And Joe should see a radio button representing the answer 'OJ' # features/step_definitions/trat_steps.rb:111 uninitialized constant HTML::Document (NameError) /home/joe/projects/cisv/vendor/plugins/rspec/lib/spec/matchers/method_missing.rb:6:in `method_missing' /home/joe/pr

Re: [rspec-users] html::document errors

2009-06-23 Thread Joe Van Dyk
Oh, latest version of rspec and rspec-rails installed as a plugin. On Tue, Jun 23, 2009 at 3:15 PM, Joe Van Dyk wrote: >    And Joe should see a radio button representing the answer 'OJ' >  # features/step_definitions/trat_steps.rb:111 >      uninitialized constant HTML::

[rspec-users] Mocking a non-existent method

2007-08-16 Thread Joe Van Dyk
I don't like this: i = mock(Integer) i.should_receive(:asdfasdf).and_return('foo') puts i.asdfasdf Shouldn't rspec check to see that :asdfasdf is a valid message to be sending Integer? Joe ___ rspec-users mailing list rspec-users@rubyforge

Re: [rspec-users] Run all tests after success

2008-02-20 Thread Joe Van Dyk
On Sat, Feb 16, 2008 at 10:39 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Feb 16, 2008 1:21 PM, Steve <[EMAIL PROTECTED]> wrote: > > On Sat, 16 Feb 2008 18:13:51 +, Steve wrote: > > > What was the nature of the changes. I just updated to r3312, and when I > > > run autotest I get: >

Re: [rspec-users] Run all tests after success

2008-02-21 Thread Joe Van Dyk
On Thu, Feb 21, 2008 at 5:21 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On Wed, Feb 20, 2008 at 10:41 PM, Joe Van Dyk <[EMAIL PROTECTED]> wrote: > > On Sat, Feb 16, 2008 at 10:39 AM, David Chelimsky <[EMAIL PROTECTED]> > wrote: > > > On Feb

Re: [rspec-users] Webrat integration with Rspec and Rake tasks

2008-02-22 Thread Joe Van Dyk
On Tue, Feb 19, 2008 at 11:02 PM, Jarkko Laine <[EMAIL PROTECTED]> wrote: > > On 19.2.2008, at 20.45, James Deville wrote: > > > I set RAILS_ENV in my stories/helper.rb file. That might be a good > > solution. > > > > > > On Feb 19, 2008, at 10:32 AM, Ed Howland wrote: > > > >> Hi, > >> >

[rspec-users] rake task for stories

2008-02-23 Thread Joe Van Dyk
Any reason why there isn't a rake task for stories yet? (I'm looking in trunk) Someone want to share theirs? Joe ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] rake task for stories

2008-02-23 Thread Joe Van Dyk
On Sat, Feb 23, 2008 at 10:41 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Feb 23, 2008, at 12:16 PM, "Joe Van Dyk" <[EMAIL PROTECTED]> wrote: > > > Any reason why there isn't a rake task for stories yet? (I'm > > looking in trunk) >

Re: [rspec-users] Autotest with TDD "test-first" problem

2008-02-23 Thread Joe Van Dyk
On Sat, Feb 23, 2008 at 6:10 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Fri, Feb 22, 2008 at 11:18 AM, Paul Dowman <[EMAIL PROTECTED]> wrote: > > Hi, I'm mostly quite happy using autotest with rspec, but there's one > > thing that's been bothering me, and as my test suite grows larger

[rspec-users] cleaning up after stories

2008-03-19 Thread Joe Van Dyk
do I have to manually clear out the database after a story runs? Seems like the data the story left is still in there. Joe ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Attachment-fu + Story Runner

2008-03-19 Thread Joe Van Dyk
What was the resolution on this? How do you people test uploads with rspec stories? On Wed, Dec 12, 2007 at 6:54 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Dec 12, 2007 5:41 AM, Daniel Tenner <[EMAIL PROTECTED]> wrote: > > > > Ok, a bit more digging and I found this is a Rails issue, t

[rspec-users] sharing story steps

2008-03-19 Thread Joe Van Dyk
Hi, How can I have a common set of steps that all my stories share? i.e. My stories often start out looking like this: Given a user Joe Given a user Jordan then: Given("a user $username") do |username| @users ||= {} @user_sessions ||= {} @users[username] = create_user(:username => userna

Re: [rspec-users] cleaning up after stories

2008-03-20 Thread Joe Van Dyk
On Thu, Mar 20, 2008 at 4:02 AM, Rick DeNatale <[EMAIL PROTECTED]> wrote: > On 3/20/08, Tero Tilus <[EMAIL PROTECTED]> wrote: > > On Wed, 19 Mar 2008, Joe Van Dyk wrote: > > > do I have to manually clear out the database after a story runs? > > > > &

Re: [rspec-users] sharing story steps

2008-03-20 Thread Joe Van Dyk
On Thu, Mar 20, 2008 at 2:05 AM, aslak hellesoy <[EMAIL PROTECTED]> wrote: > On Thu, Mar 20, 2008 at 5:44 AM, Joe Van Dyk <[EMAIL PROTECTED]> wrote: > > Hi, > > > > How can I have a common set of steps that all my stories share? > > > > i.e.

Re: [rspec-users] Attachment-fu + Story Runner

2008-03-20 Thread Joe Van Dyk
On Thu, Mar 20, 2008 at 3:34 AM, Rick DeNatale <[EMAIL PROTECTED]> wrote: > On 3/20/08, Joe Van Dyk <[EMAIL PROTECTED]> wrote: > > What was the resolution on this? How do you people test uploads with > > rspec stories? > > I submitted a Rails patch to addre

[rspec-users] story runner output

2008-03-26 Thread Joe Van Dyk
Is it possible to optionally reduce the story runner output to just dots or something? Lots of stories makes it difficult to see previous test results. Joe ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspe

[rspec-users] getting autotest to monitor changes in lib directory

2008-03-28 Thread Joe Van Dyk
Autotest monitors changes in app/models. How can I get autotest to monitor changes in lib? So that whenever something changes in lib or specs/lib, it runs the appropriate spec? Joe ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge

Re: [rspec-users] Command line story runner

2008-04-04 Thread Joe Van Dyk
On Thu, Apr 3, 2008 at 7:58 AM, Kyle Hargraves <[EMAIL PROTECTED]> wrote: > Hullo all, > > It sucks to write wrapper .rb files just so stories/all.rb can find > and run them. Here's what my stories/all.rb looks like: require File.dirname(__FILE__) + '/helper' Dir[File.dirname(__FILE__) + '/../s

[rspec-users] webrat bugs

2008-04-04 Thread Joe Van Dyk
Where do I report webrat bugs? Seems that when there's a parenthesis in the link text, doing: session.clicks_link("link with (parens)") fails to find the link text. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/lis

Re: [rspec-users] Attachment-fu + Story Runner

2008-04-04 Thread Joe Van Dyk
On Fri, Mar 21, 2008 at 5:46 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On Fri, Mar 21, 2008 at 1:35 AM, Joe Van Dyk <[EMAIL PROTECTED]> wrote: > > On Thu, Mar 20, 2008 at 3:34 AM, Rick DeNatale <[EMAIL PROTECTED]> wrote: > > > On 3/20/08

Re: [rspec-users] Attachment-fu + Story Runner

2008-04-04 Thread Joe Van Dyk
On Fri, Apr 4, 2008 at 4:10 PM, Joe Van Dyk <[EMAIL PROTECTED]> wrote: > On Fri, Mar 21, 2008 at 5:46 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > > On Fri, Mar 21, 2008 at 1:35 AM, Joe Van Dyk <[EMAIL PROTECTED]> wrote: > > > On Thu, Mar

[rspec-users] Writing a story for logging in with OpenID

2008-04-15 Thread Joe Van Dyk
So I added OpenID to my application (via the openid plugin). But I'm having troubles writing the story for it -- specifically, how to mock the openid calls. Anyone got any quick pointers? ___ rspec-users mailing list rspec-users@rubyforge.org http://rub

[rspec-users] setup for stories

2008-04-16 Thread Joe Van Dyk
I've got some code that should run before any stories execute. Where's a good place to put that? (need to create a @sessions and @users hash) Joe ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Writing a story for logging in with OpenID

2008-04-17 Thread Joe Van Dyk
s[:optional] ].flatten * ',') if fields[:optional] end end Seemed to do the trick. On Tue, Apr 15, 2008 at 9:50 PM, Bryan Ray <[EMAIL PROTECTED]> wrote: > This is a rather open ended question, Joe. You might want to get a > little more detailed. > > Would yo

[rspec-users] Date comparisons

2008-05-03 Thread Joe Van Dyk
I occasionally get this error: 1) 'A puzzle once featured, should no longer be nominated' FAILED expected: Sun May 04 09:10:26 -0700 2008, got: Sun May 04 09:10:26 -0700 2008 (using ==) ./spec/models/puzzle_spec.rb:180: So, the dates looks the same to me. Any ideas for how to debug? Joe

[rspec-users] Upgraded to 2.1 and 1.1.4 from 2.0 and 1.1.3, no output from 'rake spec'

2008-08-23 Thread Joe Van Dyk
$ rake spec --trace (in /Users/joe/projects/tanga) ** Invoke spec (first_time) ** Invoke db:test:prepare (first_time) ** Invoke db:abort_if_pending_migrations (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:abort_if_pending_migrations ** Execute db:test:prepare

Re: [rspec-users] Upgraded to 2.1 and 1.1.4 from 2.0 and 1.1.3, no output from 'rake spec'

2008-08-25 Thread Joe Van Dyk
Any ideas? On Sat, Aug 23, 2008 at 10:11 AM, Joe Van Dyk <[EMAIL PROTECTED]> wrote: > $ rake spec --trace > (in /Users/joe/projects/tanga) > ** Invoke spec (first_time) > ** Invoke db:test:prepare (first_time) > ** Invoke db:abort_if_pending_migrations (first_time) &g

Re: [rspec-users] Upgraded to 2.1 and 1.1.4 from 2.0 and 1.1.3, no output from 'rake spec'

2008-08-27 Thread Joe Van Dyk
> not necessarily reflect the views of any former, current or future employers > of mine. > > > > On 26 Aug 2008, at 00:29, Joe Van Dyk wrote: > >> Any ideas? >> >> On Sat, Aug 23, 2008 at 10:11 AM, Joe Van Dyk <[EMAIL PROTECTED]> wrote: >>>