.. are
not available in the mock_model as they are in the actual model.
Thanks for the help
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
I'm on Ubuntu 10.10, and I'm trying to figure out what I'm missing in
regards to the require statement for RSpec's expectation library.
Any code I see on the web requires rspec like:
require 'spec/expectations'
but to get it to work I always have to change it to
require 'rspec/expectations'
used to put together pieces of html.
-Steve
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
The issue is actually before getting to anything Capybara related.
It's coming from my call to member_path @member in my spec to
determine the route path to use. Looking at it this way the error
makes more sense. Not sure how much fudging I would need to do to
simulate there being a request there
= { :host = test.host, :protocol = 'https' }
end
in your config\environments\test.rb
On Sat, Nov 13, 2010 at 4:01 AM, Steve vertebr...@gmail.com wrote:
Thanks, that did it. I still have a nil error when trying to call
host_with_port on the request object inside url_for, but I think
We are indeed. There is no request var available in Capybara. I think
that is supposed to be taken care of by Capybara.default_host which I
have set, but still no dice. I see exciting times ahead trying to get
this working.
On Nov 13, 2:31 pm, Evgeniy Dolzhenko dolze...@gmail.com wrote:
We're
,
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
with capybara. So now I'm off to figure that out.
Thanks,
Steve
On Nov 12, 2:56 pm, Evgeniy Dolzhenko dolze...@gmail.com wrote:
Not sure on how to do that with Steak but you must be looking to
include Rails.application.routes.url_helpers
somewhere, with vanilla RSpec it would be
describes 'included
Thanks, that did it. I still have a nil error when trying to call
host_with_port on the request object inside url_for, but I think that
is related to my app having subdomains, and trying to use those with
capybara.
On Nov 12, 2:56 pm, Evgeniy Dolzhenko dolze...@gmail.com wrote:
Not sure on how
One of the things that you learn after testing for a while is what to
test. You don't need to test Paperclip's ability to put files to S3; that's
what Paperclip's internal tests are for. So what I do is this:
http://gist.github.com/479647
When I'm developing locally or testing, I just write
Integration testing is also known as full-stack testing. Basically,
you're not testing isolated parts of the system, but the system as a whole.
Cucumber is integration testing. rspec with 'integrate_views' is integration
testing.
___
rspec-users mailing
I have some specs that use controller_name because of namespaced
temporary controllers in my specs. In rspec-rails2 I'm told that
controller_name is not a valid method. Is there a workaround for this?
Thanks,
Steve
___
rspec-users mailing list
rspec
is the current way to do this with rspec v2?
Thanks,
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
it.
Thanks,
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Apr 5, 2010, at 8:09 AM, Pat Maddox wrote:
Sounds like a lot of work
On Apr 3, 2010, at 9:08 PM, Julian Leviston wrote:
Sorry I meant send AND __send__
Julian.
On 04/04/2010, at 11:45 AM, Julian Leviston wrote:
On 04/04/2010, at 7:32 AM, David Chelimsky wrote:
On Sat,
On Mar 29, 2010, at 1:04 PM, David Chelimsky wrote:
On Mar 29, 2010, at 2:48 PM, Ashley Moran wrote:
(2.5) Any reason why the new RSpec module is Rspec not RSpec?
/grammarnazi
AFAIK, autoloaders (like in Rails and Autotest), assume a CamelCase
convention for class names, which RSpec
entropy
results in a net increase in global entropy.
So if you're interested in prolonging the life of the universe, the best
thing to do is sit quietly in a corner and do nothing.
-Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http
On Feb 1, 2010, at 1:30 AM, Amit Kulkarni wrote:
Oh ok.
From your code it seems that we are checking the whole app as you
mentioned.
I have tested controllers using rspec.
So i am not getting which is better to use.
Since with Rspec we test the objects and here using cucumber(good for
On Jan 31, 2010, at 9:13 AM, Ravi Shankar wrote:
What is the difference between test driven development behavior driven
development, which one is better.
what are the options available in BDD.
Make up a simple project like a blog that you can do in couple of hours. Try it
using one,
Steve Scruggs wrote:
I get the following error
ThreadError in 'Managing InvoicePayments viewing index lists all
InvoicePayments'
stopping only thread
note: use sleep to stop forever
(eval):2:in `click_button'
when running rake spec using rspec and rspec-rails 1.2.9 and webrat
0.5.3
I get the following error
ThreadError in 'Managing InvoicePayments viewing index lists all
InvoicePayments'
stopping only thread
note: use sleep to stop forever
(eval):2:in `click_button'
when running rake spec using rspec and rspec-rails 1.2.9 and webrat
0.5.3. I have tried webrat 0.6.rc1
a technique that you claim fixes an inexactness problem with
floating-point math. I bet you US$100 that I can supply a trivial
example that breaks your fix.
-Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman
respond with inline comments. And use plain text email - not html.br
brThanks,brAslakbr
--001636c5b0eedf7860046942ecfc--
--===0527642389==
-Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec
After upgrading to cucumber 0.3.0 from 0.1.16 I'm getting this error when I
try to run a feature:
/Users/steve/src/jruby-1.2.0/lib/ruby/1.8/jcode.rb:66:in `end_regexp': too
short multibyte code string:
/[\xc0-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf][\x80-\xbf]$/ (RegexpError)
from /Users/steve/src
by doing this?
(b) Is is safe to make those assumptions?
If you can reasonably answer yes to the second question, then you're in
good shape. But you still have to accept that future changes to the
design can lead to structural changes that retroactively invalidate your
answer.
-Steve
Stephen,
Regarding the exception nagger, would a simple script that grepped the log
file for exceptions and produced a list of failing lines in your code be a
start?
Steve
On Sat, Apr 11, 2009 at 11:47 PM, Stephen Eley sfe...@gmail.com wrote:
On Sat, Apr 11, 2009 at 2:02 PM, Ashley Moran
element would be easier, especially when a page has multiple forms with the
same labels and input names.
Thanks,
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Well I'm reading the 0.4.2 webrat rdoc for fill_in, at it says:
field can be either the value of a name attribute (i.e. user[email]) or the
text inside a labelelement that points at the input field.
Does it also try the id?
Steve
On Fri, Mar 6, 2009 at 11:03 AM, James Byrne li...@ruby-forum.com
Aslak Hellesøy wrote:
Rob Holland updated the wiki yesterday:
http://wiki.github.com/aslakhellesoy/cucumber/sinatra
(He reports that the $0 trick described in the blog doesn't work with
the latest Sinatra).
Rob also has an example in his fork, which I have yet to merge into my
repo:
http://tooky.github.com/2009/02/05/getting-started-with-cucumber-and-sinatra.html
Andrew Premdas wrote:
Anyone using cucumber with sinitra (current). Wondering if I need to use
Aslaks sinatra/webrat forks. Also if anyone has a sample app :)
--
Posted via http://www.ruby-forum.com/.
On Wed, Jan 7, 2009 at 9:00 PM, Pat Maddox perg...@gmail.com wrote:
On Wed, Jan 7, 2009 at 6:22 PM, Stephen Eley sfe...@gmail.com wrote:
On Wed, Jan 7, 2009 at 7:00 PM, Steve Molitor stevemoli...@gmail.com
wrote:
Lots of features use the word should in their then clauses.
Take this example
I guess that would work. But a method would probably work too, if I'm
understanding correctly (often a bad assumption!). I.e. /(.*) should be
a valid date/ would call valid_date?(date), or something. Anyway, yes that
sounds promising.
Steve
On Wed, Jan 7, 2009 at 8:09 PM, Pat Maddox perg
that would
be too much noise and you want a reference.
Steve
Steve
I don't think you need all 3 steps. OK. Then is awkward
On Wed, Jan 7, 2009 at 9:00 PM, Pat Maddox perg...@gmail.com wrote:
On Wed, Jan 7, 2009 at 6:22 PM, Stephen Eley sfe...@gmail.com wrote:
On Wed, Jan 7, 2009 at 7:00 PM, Steve
?(:validate).with(the_date).return(true)
You're completely mocking out the date validation result, but you're testing
that the date validation routine was indeed called, and if you've tested
that routine elsewhere you should be good.
Or something like that. Good ideas, thanks.
Steve
On Thu, Jan 8
in those spots where you want them to.
How does that sound?
Steve
On Thu, Jan 8, 2009 at 12:52 PM, Zach Dennis zach.den...@gmail.com wrote:
On Thu, Jan 8, 2009 at 11:32 AM, Steve Molitor stevemoli...@gmail.com
wrote:
I guess that would work.
What would work? You top-posted, any way you can
it might
be nice.
Anyway you've showed me a very workable approach. Thanks!
Steve
P.S. Date validation really isn't that important in my application; that's
just an example. A real example would be the sales tax calculation in the
leasing app I worked on. That was very important
to see
a regurgitation of all the previously explained features that applied. A
reference or reminder note was just fine.
But anyway, yes focus on clarity and flow for the reader. Sometimes that
will mean getting a little DRYer, in other cases it would me getting a
little moister.
Thanks!
Steve
a spec example.
Steve
On Wed, Jan 7, 2009 at 4:22 PM, Stephen Eley sfe...@gmail.com wrote:
On Wed, Jan 7, 2009 at 12:23 PM, Steve Molitor stevemoli...@gmail.com
wrote:
By a global requirement I'm talking about requirements like 'all emails
must
be formatted like this...' Some people call
programmatically ran the date feature file inside the Given /(.*) date is
vaild/ step. But all those results would clutter up the report output. I
like your approach best: simple and doesn't require a funky technical
solution.
Steve
On Wed, Jan 7, 2009 at 7:26 PM, Pat Maddox perg...@gmail.com wrote:
From
+1 @ Pat
I was going to respond in more detail, but I do exactly what Pat does --
bang in steps, no bang in Rails apps. The Rails scaffolding boiler plate
generates no bangs.
Steve
On Mon, Dec 22, 2008 at 2:30 PM, Pat Maddox perg...@gmail.com wrote:
On Mon, Dec 22, 2008 at 11:29 AM, Caius
What about two steps with the same regex but are of different types -- i.e.
a Given and a Then with the same regexp?
Steve
On Wed, Dec 17, 2008 at 6:07 PM, aslak hellesoy aslak.helle...@gmail.comwrote:
On Wed, Dec 17, 2008 at 11:50 PM, Tim Walker walke...@gmail.com wrote:
Great information
the solution but I'm stuck on how to word it and put it together in
my case.
Steve
On Sun, Dec 14, 2008 at 8:41 AM, Matt Wynne m...@mattwynne.net wrote:
On 13 Dec 2008, at 20:58, Steve Molitor wrote:
What's the best way to handle a requirement that shows up as a
sub-requirement requirement in other
copying and pasting from other features.
Does my question make sense? Any suggestions?
Thanks.
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
are displayed. When running with 'format --pretty' everything works fine
and all steps are colored green. This is happening with jruby 1.1.4 on OS X
and RedHat Linux.
Any ideas? Could this be a bug?
Steve
___
rspec-users mailing list
rspec-users
Does anyone know if there's a vim plugin out there that will show a tree
of your describe/it blocks at a glance. Preferably with click ability to
go right to that location?
Thanks,
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http
I know there is a hash_including, which is quite useful. Are there by
chance any matchers for ensuring a hash includes only the specified
values, or that it doesn't have certain values?
Thanks,
Steve
___
rspec-users mailing list
rspec-users
with possibly multiple occurrences of its
members is known in mathematics as a multiset, or, informally, a
bag.
-Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Mark Wilden wrote:
On Wed, Aug 6, 2008 at 9:22 AM, Steve
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
I know there is a hash_including, which is quite useful. Are there
by chance any matchers for ensuring a hash includes only the
specified values, or that it doesn't have
as a model, I'd consider wrapping it inside a model class and
spec'ing it out as a model.
--
Have Fun,
Steve Eley
Deep Salt Team
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
|format|
format.json { render :json = {:errors = errors, :url =
url }, :status = 409}
end
end
end
I don't know if it's the cause, but your unless statement is an
assignment, and not an equality comparison:
unless (errors = account.errors['login'])
Steve
is based on
HTMLSelector, so it's not specifically RSpec, but does anyone know how
to work around this?
Thanks,
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Scott Taylor wrote:
Of course there is a way - the question is, do you really want to use it?
After seeing that, no, not really. I agree with you on it likely messing
with clarity. I opted to rework my specs. It wasn't my preferred option,
but there really wasn't a better way. Thanks to
Pat Maddox wrote:
etc. It's super weird that it works in every other place but not
here. So I'd start from the tiniest thing possible and add lines
until you find one that breaks it.
Pat
So I went through and took the whole thing apart. It turns out that it
is/was a stub issue(just not
stub value, but instead it seems to turn the stub
into an array making the previous value the first element, and then the
new value the second.
Thanks,
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo
Pat Maddox wrote:
...big snip...
Well, a lot of stuff has happened since then :) However, I'm not sure
what your problem is still so I can't tell you that it's been fixed
since then. It sounds to me like you're saying reservations(:single)
returns a Reservation object in one test, but [] in
a permanent change in
memory. I can't know if that's your problem, of course, but it's
something to think about.
--
Have Fun,
Steve Eley
Deep Salt Team
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec
of code each time. I don't consider that much of a
burden.
--
Have Fun,
Steve Eley
Deep Salt Team
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
--
Have Fun,
Steve Eley
Deep Salt Team
___
rspec-users mailing list
rspec-users@rubyforge.org
http
it in their config.*
block if they want to use it?
--
Have Fun,
Steve Eley
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
I have specs that ran fine in Rails 2.02/RSpec 1.13 that are failing on
Rails 2.1/RSpec 1.14.
There is one problem and one issue:
problem: sometimes (but not always) I get a NoMethodError referencing a
has_many association
issue: in helper specs, instance variables don't get set unless the
on this project a while back and I did
upgrade my REXML version at some point.
On Tue, May 13, 2008 at 4:02 PM, Alf Mikula [EMAIL PROTECTED] wrote:
Steve,
Did you have any luck with this? I ran into this problem today, with
Rcov 0.8.1.2.0, RSpec 1.1.3, and REXML 3.1.7.3.
rspec-users@rubyforge.org
On Sat, May 10, 2008 at 11:03 AM, Wayne Molina [EMAIL PROTECTED] wrote:
Okay the issue seems to have been that it wasn't set to RSpec but Ruby
on Rails. Changing it to RSpec seems to fix it... silly me, I guess :)
Same problem (and solution) for me, but ...
when I'm in a spec file and
I have a case where I'm loading fixtures and a row added to a table in a
spec is around at the start of all subsequent specs.
When I set config.use_transactional_fixtures = false the fixtures load/clear
as expected.
Any ideas?
___
rspec-users mailing
I assume you are running with '-f s' switch? Maybe its in your spec.opts
file ... maybe as --format progress?
If you change that to '-f p' you only see progress as a single '.' for each
passing test with errors at the end of the output.
Or maybe I'm not understanding the question.
On Wed, May
I've seen that one too. Maybe has to do with how equality is defined in the
Time or DateTime class.
I get around it by comparing the string-ified versions:
foo.time.to_s.should == expected_time.to_s
On Sat, May 3, 2008 at 9:17 AM, Joe Van Dyk [EMAIL PROTECTED] wrote:
I occasionally get
I sent an inquiry to Prag Bookshelf but didn't hear anything -- saw
something online that led me to believe they were the publisher.
PeepCode has several RSpec screencasts.
On Sat, May 3, 2008 at 10:06 AM, Michael Schuerig [EMAIL PROTECTED]
wrote:
I admit it, when it comes to rSpec, I'm lazy.
Just because too objects have the same to_s representation don't mean
they are equal:
The important equality in this case is what matters to the tester.
This is a similar issue to Floats where there's more precision than
the exernal representation shows.
Is there more precision than
Trying to run the 'spec:rcov' task and failing with error below.
I saw a post from last year with a different REXML error but it was a FixNum
issue.
Any help appreciated.
S
OS X
Ruby 1.8.6
Rails 2.02
RSpec-1.1.3 (build 20080131122909)
REXML 3.1.6
=
876 examples, 0 failures, 87 pending
Just curious if anything special needs to be done to use the Rails
fixture scenarios plugin(http://code.google.com/p/fixture-scenarios/)
with rspec? Would I just create the scenarios inside the spec/fixtures
dir, as opposed to the test/fixtures dir?
Thanks,
Steve
On Mar 31, 2008, at 7:03 AM, Ashley Moran wrote:
Hi
Is anyone here using NetBeans and story runner? NB doesn't
recognise .story files so I can't even do simple things like block
commenting lines (and the regex replace is temperamental). I tried
adding .story to the list of Ruby
, and just add:
before(:each) { begin_transaction }
after(:each) { rollback_transaction }
within the describe block it works perfectly.
Does anybody know what might be causing this, or a way around it?
Thanks for your help.
Steve
___
rspec-users mailing
On Sat, 08 Mar 2008 15:51:01 -0500, Zach Dennis wrote:
I'm heading out of town, but had a quick thought I wanted to share.
Rather then using ambiguous named request helpers in controller specs
like do_request, I've been using more readable helpers like
post_create.
snip
IMO is adds a
On Sat, 16 Feb 2008 10:23:53 -0500, David Chelimsky wrote:
On Feb 15, 2008 6:06 PM, Steve
[EMAIL PROTECTED] wrote:
I seem to remember when I was running a previous version of rspec and
autotest that when a set of specs passed for some changed files, that
all of the specs would then be run
to know what crazy
way someone might layout their projects.
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
in the view spec, so that that output could be expected. My helper
functions all have their own specs, so it would seem that I'm not doing
anything magical, just making the specs a little simpler.
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
this,
or is something wrong?
Thanks,
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Fri, 15 Feb 2008 01:07:27 -0500, David Chelimsky wrote:
The source of the bug was a patch that we applied a while back. This was
after the 1.1.3 release, so if you're using 1.1.3 you're fine. If you're
using trunk, go ahead and update and you should be fine now.
Thanks, I appreciate it.
information I can provide.
Thanks,
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
why it then tries to run all of the specs again.
Finished in 15.703733 seconds
398 examples, 1 failure, 1 pending
/usr/bin/ruby1.8 -S script/spec -O spec/spec.opts
/usr/bin/ruby1.8 -S script/spec -O spec/spec.opts spec/views/users/
index.html.haml_spec.rb etc...
Thanks,
Steve
a
previously working much earlier rev of rspec/rails, and zentest. I'm
guessing something old is lingering around. Where would I be best off
looking?
Thanks,
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo
On Thu, 14 Feb 2008 17:53:42 +, Steve wrote:
When I try to run autotest I get the following error:
loading autotest/rails_rspec
/usr/local/lib/site_ruby/1.8/rubygems.rb:319:in `activate': can't
activate ZenTest (= 3.7.1), already activated ZenTest-3.9.1]
(Gem::Exception
David Chelimsky wrote:
On Feb 4, 2008 11:15 PM, Steve Hayes [EMAIL PROTECTED] wrote:
In RSpec 1.1.3 this method is invoked from
Spec::Example::ExampleGroupMethods.inherited, but it no longer exists.
It most certainly does. In fact, it's new in 1.1.3, so neither the
method nor the call
version of RSpec gets me going, but
seems a bit of a hack. Is there something else I should be doing, or is
this a bug?
Steve Hayes
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman
was 'fields_for address, address'.
Is there a way to check for this through the primary view, or should I
just spec the partial individually?
Thanks,
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo
I have a project with rspec installed as a plugin using
svn:externals. Here are my externals:
rspec_on_railssvn://rubyforge.org/var/svn/rspec/trunk/
rspec_on_rails
rspec svn://rubyforge.org/var/svn/rspec/trunk/
rspec
I just did an svn up on both and
Is there an easy way to spec that a controller should include helpers
other than its own? I was thinking I could just spec responds_to for
methods I'm interested in in the view, but that seems like crossing a
separation boundary, that the controller maybe doesn't need to know about?
Thanks,
Steve
I have some finders in my models where I write some of the sql myself. I
of course want to test these, but am not sure the best way. Should I just
let them roll through to the db, and verify they return the correct
objects based on the fixtures I load, or should I spec the actual query? I
know
On Fri, 26 Oct 2007 13:38:09 -0400, Scott Taylor wrote:
That's quite outdated. RSpec now comes with it's own autotest plugin
(which should use it by default, if you have the rspec gem installed).
Scott
I'm running from trunk, and don't have the gem installed. How is
autotesting enabled?
On Fri, 26 Oct 2007 18:51:17 +, Steve wrote:
On Fri, 26 Oct 2007 13:38:09 -0400, Scott Taylor wrote:
That's quite outdated. RSpec now comes with it's own autotest plugin
(which should use it by default, if you have the rspec gem installed).
Scott
I'm running from trunk
On Fri, 26 Oct 2007 15:01:30 -0400, Josh Knowles wrote:
On 10/26/07, Steve [EMAIL PROTECTED] wrote:
I'm running from trunk, and don't have the gem installed. How is
autotesting enabled? Is it a special switch passed to 'spec' or
'spec_server'?
gem install ZenTest
cd RAILS_ROOT
autotest
On Thu, 25 Oct 2007 05:30:38 +, Steve wrote:
I just updated to r2784, and now all of my specs output the '.' and then
'WARNING: there is already a transaction in progress', either once or
twice before the next dot. It's indicating that all specs are passing,
there's just a whole ton
On Thu, 25 Oct 2007 17:38:07 -0500, David Chelimsky wrote:
Actually, if you get the latest trunk this should be fixed. Let me know.
Thanks,
David
Yep, looks good now. Thanks.
___
rspec-users mailing list
rspec-users@rubyforge.org
when a spec is run?
Thanks,
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Thu, 25 Oct 2007 20:09:23 -0500, David Chelimsky wrote:
On 10/25/07, Steve [EMAIL PROTECTED] wrote:
I have some specs that 'require' other files. When running spec_server, if
these required files are changed, it's not picked up when the specs are
run. I have to restart spec_server to get
creating a new session, but nothing seems to do it. I'm sure
there's something I'm missing. Suggestions?
Thanks,
Steve
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
I have some specs that run just fine using rake spec:controllers or
script/spec spec/controllers but if I run script/spec spec/controllers
-X with the spec server running, I end up getting some mocks that fail
saying expected once, and being called twice. Any ideas what would cause
this kind of
On Wed, 24 Oct 2007 21:36:15 -0400, Scott Taylor wrote:
Did you try restarting the drb server?
Scott
Yes. Multiple times. Exact same results each time.
___
rspec-users mailing list
rspec-users@rubyforge.org
On Wed, 24 Oct 2007 21:29:39 -0400, Jonathan Linowes wrote:
i've done this in controller specs
session[:whatever] = something
do_it
Yeah, I did that, and it was turning up nil when I actually made the
request.
___
rspec-users mailing list
On Tue, 23 Oct 2007 17:58:45 -0500, David Chelimsky wrote:
I don't know if there are any repercussions, but just adding :text to the
array in
rspec_on_rails/lib/spec/rails/dsl/behaviour/view_example.rb:subject_of_render
was enough to make it work.
That's cool, but that's not how we do
* (in theory, I
haven't done this yet) do something like this:
It would feel even less hackish if render supported :text like
rails render does. So you could do this:
render :text = 'divyielded/div', :layout = 'application'
response.should have_tag('div', 'yielded')
Steve
1 - 100 of 123 matches
Mail list logo