../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
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
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
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',
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
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
___
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
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
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.
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
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
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
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
__
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
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
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::
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
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:
>
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
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,
> >>
>
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
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)
>
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
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
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
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
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?
> >
> >
&
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.
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
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
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
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
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
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
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
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
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
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
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
$ 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
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
> 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:
>>>
42 matches
Mail list logo