for my app.
Hope this helps,
Martin
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Mon, Apr 4, 2011 at 1:24 AM, andyl akl...@gmail.com wrote:
I am using rspec/aruba to do integration tests of a command-line program
i'm writing.
...
Alternatively, I could write a local web service that delivers fake
results.
I like the idea of this for end-to-end tests, depending on
On Fri, Mar 25, 2011 at 3:59 AM, Michael B. Klein mbkl...@gmail.com wrote:
Hello all,
I recently released a gem that assists in testing XML nodes
for equivalency, and thought it might be of interest to the RSpec community.
It can normalize whitespace (or not), ignore element order (or not),
I understand you're looking for 'free' tutorials but I would really strongly
advise you check out Michael Hartl's
http://ruby.railstutorial.org/screencast series. I'm not affiliated
with this in any way, but I watched
them recently (more for the Rails 3 info than RSpec) and found the use of
RSpec
How about just testing the flash directly, which should be accessible from
your test:
flash[:success].should =~ /welcome new user/i
I've used a case insensitive regex here, which I think captures the intent
of your test without being quite so rigid.
What do you think?
On Fri, Mar 11, 2011 at
I've recently been playing around with some code that re-runs a block until
either the block returns a non-false value, or a timeout expires:
https://gist.github.com/838520
At first, I thought this was working, as I was just checking the timing of
the examples when returning a true value,
Thanks, Michael: That's a useful article.
I attempted to emulate the example in RSpec but still found that stubbing
sleep with any of the built in rspec-mocks wasn't working the way I hoped. I
was probably doing something wrong.
In the end I wrote a little module (Sleepy) that I can include in
Not 100% sure, but that failure looks suspiciously like something you
get when using rack-test; which expects an 'app' method to be defined
that returns an instance of your rack-compatible application.
On Saturday, February 12, 2011, Doug Bryant doug+rspecu...@netinlet.com wrote:
On one of my
I'm trying to imagine a use case (and usage) of this. Could you give
me an example of how you would want to write it and what for?
On Friday, February 11, 2011, Andrew Wagner wagner.and...@gmail.com wrote:
Is there any way, within a test (e.g., in an after block), to see whether the
test is
Hi,
I've been coming up with some documentation examples, which I'd like
to contribute as Cucumber features to go into the relishapp.
I started following the contribute instructions on the rspec-dev
README[1] but have a question about pull requests.
Should I clone from the rspec/* projects on
Thanks, David. That makes perfect sense.
James.
On Fri, Feb 11, 2011 at 1:05 PM, David Chelimsky dchelim...@gmail.com wrote:
On Feb 10, 2011, at 6:29 PM, James Martin wrote:
Hi,
I've been coming up with some documentation examples, which I'd like
to contribute as Cucumber features to go
I placed a debugger statement in a controller being tested with rspec2
to catch what's going on, but the statement is ignored? Do I have to
do anything special to get the debugger to stop in the controller
under rspec? If I place the debugger statement in the spec, I get a
break -- but I want the
I agree with you that to create a major release for this too grand.
Suitable fanfare and documentation is fine.
On 18 January 2011 14:15, David Chelimsky dchelim...@gmail.com wrote:
Hi all,
Since the release of rspec-2.0, I've been following Rubygems' rational
versioning [1] as closely as
I had this problem too. I am in a project that has 1.9.2 and a similar
list of gems.
I'm afraid I chickened out of using autotest and use watchr instead.
On Dec 6, 9:49 pm, Nicholas Wieland nicholas.wiel...@gmail.com
wrote:
Hi guys, I'm not entirely sure this is a problem with RSpec or cucumber,
went wrong.
Thanks for responding
On Dec 4, 2:25 am, David Chelimsky dchelim...@gmail.com wrote:
On Dec 3, 2010, at 11:07 AM, Martin Hawkins wrote:
Ruby 1.9.2, Rails 3.0.3, Rspec-rails 2.2.0
I have:
Factory.define :season_date do |f|
f.season_date Date.new(2011,9,24)
f.date_type
= ?, start_date]).first
end
end
Agreed re redundant test - I put that in when the 'real' test failed.
On Dec 4, 2:25 am, David Chelimsky dchelim...@gmail.com wrote:
On Dec 3, 2010, at 11:07 AM, Martin Hawkins wrote:
Ruby 1.9.2, Rails 3.0.3, Rspec-rails 2.2.0
I have:
Factory.define
I can't believe I did that either...
Doh!
On Dec 4, 4:04 pm, David Chelimsky dchelim...@gmail.com wrote:
On Sat, Dec 4, 2010 at 8:34 AM, Martin Hawkins martin.hawk...@gmail.com
wrote:
I can't believe I did that...
No, there is only one Factory; copy and paste error. The SeasonDate
class
Ruby 1.9.2, Rails 3.0.3, Rspec-rails 2.2.0
I have:
Factory.define :season_date do |f|
f.season_date Date.new(2011,9,24)
f.date_type season_start
end
RSpec.configure do |config|
config.mock_with :rspec
end
Factory.define :season_date do |f|
f.season_date Date.new(2011,9,24)
doesn't work with RSpec
(although I may be wrong).
Reverting to autotest 4.4.5 got me back up and running.
What's the longer term strategy? watchr?
Thanks
Martin Volerich
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman
: undefined method `remote_ip' for nil:NilClass from
/Users/martin/.rvm/gems/ruby-1.8.7-p...@pta3/gems/
activesupport-3.0.1/lib/active_support/whiny_nil.rb:48:in `method_missing' from
/Users/martin/.rvm/gems/ruby-1.8.7-p...@pta3/gems/
authlogic-2.1.6/lib/authlogic/session/magic_columns.rb:61
Congrats on reaching this milestone and many thanks to all who
contributed. Your efforts are much appreciated! RSpec2 is a massive
improvement over 1 and I'm really enjoying using it.
Thanks,
James.
On Sunday, October 10, 2010, David Chelimsky dchelim...@gmail.com wrote:
## RSpec-2.0.0 has been
I am new to rspec and am finding it all a bit daunting at the moment.
I'd like to be able to adopt a bdd approach to my development but I'm
still at the stage of trying to get my head around rspec concepts so
I'm committing the cardinal sin of coding first and then writing
tests.
I am using the
perfect :)
martin
On Thu, Apr 29, 2010 at 8:10 PM, Joaquin Rivera Padron
joahk...@gmail.com wrote:
maybe then check http://github.com/cavalle/steak
joaquin
2010/4/29 Martin DeMello martindeme...@gmail.com
On Tue, Apr 27, 2010 at 3:32 PM, Matt Wynne m...@mattwynne.net wrote:
Should
it in English.
martin
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Wed, Apr 28, 2010 at 10:20 PM, Matthew Van Horn
mattvanh...@gmail.com wrote:
I've been using rspec with webrat, for exactly this sort of thing, as
detailed here:
http://blog.veez.us/2009/09/11/integration-testing-without-cucumber
Thanks!
martin
to organise the tests. Is it likely to be
useful, or am I going against the grain enough that I'd run into
problems?
martin
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
/simpler_helper.rb.
Running rake spec without spork works correctly.
Can you point me the right direction please?
Thanks,
Martin
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
10: td%=h item.name %/td
But 'simpeFunction' is defined in app/helpers/simpler_helper.rb.
Running rake spec without spork works correctly.
Can you point me the right direction please?
Thanks,
Martin
___
rspec-users mailing list
rspec-users
on whether this is worth making into a patch.
Martin Emde
Tw: @martinemde
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
with:
rspec (1.2.8, 1.1.12)
rails (2.3.3, 2.3.2)
rspec-rails (1.2.7.1, 1.1.12)
cucumber (0.3.101, 0.3.100, 0.3.93, 0.3.92)
and running the last selenium client it works
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing
I'm trying to use Rspe but I have this message error:
undefined method `evaluate_value_proc' for class
`Spec::Matchers::Change' (NameError)
___
I have this gems:
rspec 1.2.8, 1.1.12
rspec-rails 2.3.7.2, 2.2.12
cucumber0.3.101, 0.3.100
Hi Aslkak,
Did you change your test.rb to use
config.cache_classes = false
?
you're right, I changed it because of rspec-server. Now I found the hint
on
http://wiki.github.com/dchelimsky/rspec/spec_server-autospec-nearly-pure-bdd-joy
that it breaks cucumber...
Thanks,
Martin
?
Thank you,
Martin
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
configuration
works properly.)
Can anyone make suggestions on how to best approach this? Shall I just
open the class and redefine certain methods? Or is there a way for me
to disable Solr for all classes while running rspec?
Martin
___
rspec
Thanks, Scott. I tend to want to run the real thing to make sure the
code really does work.
On Sep 17, 2008, at 10:59 AM, [EMAIL PROTECTED] wrote:
Ultimately, it's all about how comfortable you feel. Mocks will
always smell bad with rails' associations because of the law of
demeter
with rspec tests?
Martin
On Sep 16, 2008, at 3:41 PM, [EMAIL PROTECTED] wrote:
require 'ruby-debug'
debugger
at the point in my code where I want to break into the debugger. Then
running the specs via most any means (including autotest, but not
spec_server) will start up the debugger
The heart of my question is the seemingly chicken-and-egg-like nature
of testing many models that work together. I now have two flavors of
tests: tests that keep the models honest (computations and returns
values are consistent and accurate) and tests that operate at the
macro level as
Hey, James. Nice to hear from you. If you hear of any work, send it my
way.
I did watch the PeepCode stuff. I will watch it again now that I have
a little experience with the whole thing -- perhaps it will fill in
some blanks.
On Sep 17, 2008, at 2:13 PM, [EMAIL PROTECTED] wrote:
?
Martin
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Any news on this?
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Tim Haines wrote:
Hi Ashley,
I don't think Netbeans has support for plain text stories yet - but I'm
not certain (I was using it with frustration last night too). Probably
better to ask in the netbeans forum?
Hi,
yes, the .story extension is not supported out-of-the box. Unfortunately
41 matches
Mail list logo