On 2009-01-16, at 17:42, Fernando Perez wrote:
Nicholas Wieland wrote:
Does someone have an example on faking a file upload for just
ensuring
it gets called, without actually uploading the file to s3.
I thought that stubbing Model.has_attached_file would be enough, but
it doesn't seem so ...
I'm having problems knowing what a scenario outline I've created is doing.
In particular I have no idea about what steps are being matched when the
outline is run so when I break something I can't find out what is wrong. Is
there any progress on getting better output for scenario outlines.
TIA
An
If your using capistrano you could delete this file when deploying.
2009/1/16 Scott Taylor
>
> On Jan 16, 2009, at 2:38 PM, Fernando Perez wrote:
>
> Hi,
>>
>> I just run in the following problem when starting a Rails app on my
>> production server:
>>
>> You have rspec rake tasks installed in
Because traffic is increasing
Because cucumber really is a seperate mature topic now.
Because rspec overlap is getting smaller (relatively)
WDYT
Andrew
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-us
On 2009-01-16, at 17:19, Fernando Perez wrote:
Aslak Hellesøy wrote:
On Thu, Dec 25, 2008 at 2:04 PM, Manasi Vora
wrote:
I am using webrat 0.3.2 cucumber 0.1.13 activerecord 2.1.1
You need a newer webrat - for example gem install aslakhellesoy-
webrat
Aslak
Thanks that help me out. I
On Jan 16, 2009, at 4:15 PM, Fernando Perez wrote:
I would delete that rake task file (lib/rspec.rake) if you don't have
rspec installed.
Scott
I run rspec on my dev machine, but obviously not on my production
machine, what would be the nicest way to handle such scenario? At the
top of rspe
On Fri, Jan 16, 2009 at 3:19 PM, David Chelimsky wrote:
> >>
> >> I run rspec on my dev machine, but obviously not on my production
> >> machine, what would be the nicest way to handle such scenario? At the
> >> top of rspec.rake I could add a check on the environment
> >
> > That would get my vot
On Fri, Jan 16, 2009 at 2:58 PM, David Chelimsky wrote:
> On Fri, Jan 16, 2009 at 4:15 PM, aslak hellesoy
> wrote:
>>
>>
>> On Fri, Jan 16, 2009 at 10:05 PM, David Chelimsky
>> wrote:
>>>
>>> On Fri, Jan 16, 2009 at 1:38 PM, Fernando Perez
>>> wrote:
>>> > Hi,
>>> >
>>> > I just run in the foll
Aslak Hellesøy wrote:
> On Thu, Dec 25, 2008 at 2:04 PM, Manasi Vora
> wrote:
>
>>
>> I am using webrat 0.3.2 cucumber 0.1.13 activerecord 2.1.1
>>
>
> You need a newer webrat - for example gem install aslakhellesoy-webrat
>
> Aslak
Thanks that help me out. It installed 0.3.2.2 which works, w
On Fri, Jan 16, 2009 at 4:15 PM, aslak hellesoy
wrote:
>
>
> On Fri, Jan 16, 2009 at 10:05 PM, David Chelimsky
> wrote:
>>
>> On Fri, Jan 16, 2009 at 1:38 PM, Fernando Perez
>> wrote:
>> > Hi,
>> >
>> > I just run in the following problem when starting a Rails app on my
>> > production server:
>
On Fri, Jan 16, 2009 at 5:06 PM, Mark Wilden wrote:
> On Fri, Jan 16, 2009 at 1:15 PM, Fernando Perez
> wrote:
>>
>> I run rspec on my dev machine, but obviously not on my production
>> machine, what would be the nicest way to handle such scenario? At the
>> top of rspec.rake I could add a check
On Fri, Jan 16, 2009 at 12:25 PM, James Byrne wrote:
> Pat Maddox wrote:
>
>> I assume you don't though, cause that'd be kinda weird. How about
>> passing it in the POST params:
>>
>> put users_url(user), :user => {:administrator => true}
>>
>> Something along those lines...
>
> That is the probl
On Fri, Jan 16, 2009 at 1:15 PM, Fernando Perez wrote:
>
> I run rspec on my dev machine, but obviously not on my production
> machine, what would be the nicest way to handle such scenario? At the
> top of rspec.rake I could add a check on the environment
That would get my vote.
///ark
Zach Dennis wrote:
>
>
> The "Then" step ensures that the user is redirected to an access
> denied page. Granted, this doesn't go the granularity you may be
> trying to get at, but knowing you aren't actually getting through to
> the underlying action (by being redirected to the access denied pag
>
> I would delete that rake task file (lib/rspec.rake) if you don't have
> rspec installed.
>
> Scott
I run rspec on my dev machine, but obviously not on my production
machine, what would be the nicest way to handle such scenario? At the
top of rspec.rake I could add a check on the environmen
Just as an addendum to that, it also exhibits freezing behaviour on
one of the specs (presumably the same) with just the one line in
place. (It just hangs indefinitely during the progress output.)
Don't expect anyone will be able to figure this out without seeing all
the code, so I'm hopin
Nicholas Wieland wrote:
> Does someone have an example on faking a file upload for just ensuring
> it gets called, without actually uploading the file to s3.
> I thought that stubbing Model.has_attached_file would be enough, but
> it doesn't seem so ...
>
> This is what I did:
>
> Video.stub!( :h
On Fri, Jan 16, 2009 at 2:38 PM, Fernando Perez wrote:
>
> A quick fix is to install rspec and rspec-rails gems on production
> server, but I don't get why the app wants them installed.
Because every Rake file in /lib gets loaded when you run Rake. That's
your dependency problem; not the app its
On Fri, Jan 16, 2009 at 10:05 PM, David Chelimsky wrote:
> On Fri, Jan 16, 2009 at 1:38 PM, Fernando Perez
> wrote:
> > Hi,
> >
> > I just run in the following problem when starting a Rails app on my
> > production server:
> >
> > You have rspec rake tasks installed in
> > /home/thomas/rails_ap
On Fri, Jan 16, 2009 at 8:51 AM, Wegener Ken wrote:
> Solved my problem all the examples I could find had the following example
> myTest.should_not_be_valid
> but that method wasn't a valid method.
>
> It appears the method has been refactored and the new form is
> mytest.should_not(be_valid) wh
On Fri, Jan 16, 2009 at 1:38 PM, Fernando Perez wrote:
> Hi,
>
> I just run in the following problem when starting a Rails app on my
> production server:
>
> You have rspec rake tasks installed in
> /home/thomas/rails_apps/video_on_demand/lib/tasks/rspec.rake,
> but rspec can not be found in ve
On 16 Jan 2009, at 17:44, Ed Keith wrote:
I have very little experience with Ruby. I am using RSpec to test a
cross platform C++ library. I am using a shell script (and batch file)
to run the tests with several different compilers.
I do no want to put the details of the different compilers in
In the past we've done the following:
Story: Users without hierarchy manager role accessing the hierarchy
In order to ensure users that shouldn't have access to the hierarchy don't
As a user who isn't a hierarchy manager
I should not be able to access the hierarchy
Scenario: Non hierarch
On Jan 16, 2009, at 2:38 PM, Fernando Perez wrote:
Hi,
I just run in the following problem when starting a Rails app on my
production server:
You have rspec rake tasks installed in
/home/thomas/rails_apps/video_on_demand/lib/tasks/rspec.rake,
but rspec can not be found in vendor/gems, vend
Hi,
I just run in the following problem when starting a Rails app on my
production server:
You have rspec rake tasks installed in
/home/thomas/rails_apps/video_on_demand/lib/tasks/rspec.rake,
but rspec can not be found in vendor/gems, vendor/plugins or on the
system.
Obviously I don't wan
Hi
Before I try to recreate this, does anyone know what generally causes
this in a progress spec run?
/opt/local/lib/ruby/gems/1.8/gems/
rspec-1.1.12/lib/spec/runner/formatter/progress_bar_formatter.rb:25:in
`flush': Bad file descriptor (Errno::EBADF)
from /opt
Pat Maddox wrote:
> I assume you don't though, cause that'd be kinda weird. How about
> passing it in the POST params:
>
> put users_url(user), :user => {:administrator => true}
>
> Something along those lines...
That is the problem, I am not sure what syntax to use int the step
definition. I
James Byrne wrote:
>
> Now, what I am looking for is an example of how an authenticated user
> would craft a post request in their browser to set the
> user.administrator flag to true.
>
OK, I figured out how to do this, as an authenticated user, from the
browser. I am now going to try the sy
Solved my problem all the examples I could find had the following example
myTest.should_not_be_valid
but that method wasn't a valid method.
It appears the method has been refactored and the new form is
mytest.should_not(be_valid) which does work
following test does what I want
it "should not cr
On Fri, Jan 16, 2009 at 10:00 AM, James Byrne wrote:
> I am working on our (newly renamed) authentication feature. The current
> scenario is:
>
> Scenario: Non-administrators should not set administrator ability
>Given I have no users
> And I add a user named "admin" as an administrator
On Fri, Jan 16, 2009 at 8:59 AM, James Byrne wrote:
> Aslak Hellesøy wrote:
>> If you're on Rails and use RSpec matchers, the latest official
>> webrat 0.3.4 gem is broken. It doesn't contain the webrat/rspec-rails.rb
>> file (a packaging bug).
>>
>
> If you feel adventurous then, after installing
I am working on our (newly renamed) authentication feature. The current
scenario is:
Scenario: Non-administrators should not set administrator ability
Given I have no users
And I add a user named "admin" as an administrator
And I add a user named "myuser" as not an administrator
I have very little experience with Ruby. I am using RSpec to test a
cross platform C++ library. I am using a shell script (and batch file)
to run the tests with several different compilers.
I do no want to put the details of the different compilers in the RSpec
files, but am thinking about rewriti
Aslak Hellesøy wrote:
> If you're on Rails and use RSpec matchers, the latest official
> webrat 0.3.4 gem is broken. It doesn't contain the webrat/rspec-rails.rb
> file (a packaging bug).
>
If you feel adventurous then, after installing cucumber-0.3.4, you could
create a file with this content:
On Fri, Jan 16, 2009 at 3:29 AM, Ken Wegener wrote:
>
> I'm new to rspec and looking for way to test a validation I added to a model.
>
> The test checks to see that if field1 has a value then field2 must be nil
> and vice versa.
>
> ---
> When I did the rspec_scaffold
David Chelimsky wrote:
> On Wed, Jan 14, 2009 at 3:53 PM, Fernando Perez
> wrote:
>>>
>>> Here are my questions:
>>> - What does the returns(Episode.all) mean?
>
Okay I get it now. Thank you very much.
--
Posted via http://www.ruby-forum.com/.
___
rs
We're trying to get one of them up at work and we're currently adding
selenium grid support to webrat. I was thinking of building a glue
plugin on one of these frameworks so that they would just run as a
webrat test via a rake task. Would anyone be interested in somthing like
that if we plugini
On 15 jan 2009, at 23:24, Joseph Wilk wrote:
Bart Zonneveld wrote:
Hey all,
I've read http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/3-%20%20create-givenscenario-dependency-accross-feature-file
, and would like to share another idea about this.
I'm building a blog at the mo
I'm new to rspec and looking for way to test a validation I added to a model.
The test checks to see that if field1 has a value then field2 must be nil
and vice versa.
---
When I did the rspec_scaffold it generated one test which worked
before :each do
@valid_attri
Hi Guys,
2009/1/15 aslak hellesoy :
>
>
> On Thu, Jan 15, 2009 at 9:25 PM, Mischa Fierer wrote:
>>
>> While I agree that ie6 must die, the fix required to make it work sounds
>> minimal in this case. I may be wrong.
>>
>> Perhaps, Aidy, you would be interested in submitting a patch which Aslak
>>
On Fri, Jan 16, 2009 at 12:14 PM, Juanma Cervera wrote:
> Ok.
>
> I have solved my problem.
>
> Because I am using spanish for wrinting my features, I didn't paste the
> exact sentences of the code I was using, and pasted instead a
> "manual-translated similar" code.
> And nobody could see the pro
Ok.
I have solved my problem.
Because I am using spanish for wrinting my features, I didn't paste the
exact sentences of the code I was using, and pasted instead a
"manual-translated similar" code.
And nobody could see the problem. Never more.
The problem was that I was writing the block for t
Hi Guys,
2009/1/15 aslak hellesoy :
>
>
> On Thu, Jan 15, 2009 at 9:25 PM, Mischa Fierer wrote:
>>
>> While I agree that ie6 must die, the fix required to make it work sounds
>> minimal in this case. I may be wrong.
>>
>> Perhaps, Aidy, you would be interested in submitting a patch which Aslak
>>
On 16 Jan 2009, at 06:58, Scott Taylor wrote:
s.ross wrote:
On Jan 15, 2009, at 7:24 AM, Mike Gaffney wrote:
s.ross's email about Screw.Unit brought prompted me to ask this
question:
1) What do you use for Javascript Unit testing?
I've tried jsspec and Screw.Unit and so far I'm thinking
On 15 Jan 2009, at 22:13, James Byrne wrote:
We have, in consequence, gone through and removed the term login from
all code use as well; replacing it with authenticate. So, for
example,
the authentication form now says: To Proceed Please Authenticate
Yourself
I am sometimes (ok, mostly) sl
45 matches
Mail list logo