the
implementation of supporting multiple locales 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 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 the com
On Fri, Mar 25, 2011 at 3:59 AM, Michael B. Klein 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), compare
> nam
On Mar 23, 2011, at 12:22 AM, rspec-users-requ...@rubyforge.org wrote:
> Send rspec-users mailing list submissions to
> rspec-users@rubyforge.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://rubyforge.org/mailman/listinfo/rspec-users
> or, via email, send a
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 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 a
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
RS
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, however
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 wrote:
> On one of my projects using rspec 2.5 & ra
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 wrote:
> Is there any way, within a test (e.g., in an after block), to see whether the
> test is currently passing, fail
Thanks, David. That makes perfect sense.
James.
On Fri, Feb 11, 2011 at 1:05 PM, David Chelimsky 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 Cucu
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 gi
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 b
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 wrote:
> Hi all,
>
> Since the release of rspec-2.0, I've been following Rubygems' rational
> versioning [1] as closely as possible. Patch rel
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
wrote:
> Hi guys, I'm not entirely sure this is a problem with RSpec or cucumber, for
> sure it's happenin
I can't believe I did that either...
Doh!
On Dec 4, 4:04 pm, David Chelimsky wrote:
> On Sat, Dec 4, 2010 at 8:34 AM, Martin Hawkins
> wrote:
> > I can't believe I did that...
> > No, there is only one Factory; copy and paste error. The SeasonDate
> &
e(["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 wrote:
> On Dec 3, 2010, at 11:07 AM, Martin Hawkins wrote:
>
>
>
>
>
> > Ruby 1.9.2
st - I just put that in when things
went wrong.
Thanks for responding
On Dec 4, 2:25 am, David Chelimsky 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:
>
> > Fa
h I assume 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://r
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)
f.date_ty
c::TestCase
=> Object
ruby-1.8.7-p302 >ron = User.first
ruby-1.8.7-p302 > activate_authlogic
=> #"text/html"}>
ruby-1.8.7-p302 > us = UserSession.new(:email => ron.email, :password =>
ron.password)
=> #"", :email=>"ron1.weasl...@hogworts.com
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 wrote:
> ## RSpec-2.0.0 has been released!
>
> This
On Sat, Sep 18, 2010 at 8:33 PM, babar shahzad wrote:
>
> Helo dear list members,
>
> Can you kindly confirm me that its the correct list I subscribed to. I want
> help in twitter oauth. I am using abraham williams' library. If something
> wrong, I will be very thankful if you could write me link
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 fo
perfect :)
martin
On Thu, Apr 29, 2010 at 8:10 PM, Joaquin Rivera Padron
wrote:
> maybe then check http://github.com/cavalle/steak
>
> joaquin
>
> 2010/4/29 Martin DeMello
>>
>> On Tue, Apr 27, 2010 at 3:32 PM, Matt Wynne wrote:
>> >
>> > Should be
On Wed, Apr 28, 2010 at 10:20 PM, Matthew Van Horn
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
_
n English.
martin
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Tue, Apr 27, 2010 at 3:32 PM, Matt Wynne wrote:
>
> Should be fine, though you might find cucumber/aruba a nice combination for
> this too.
Thanks, aruba looks really interesting! Will explore it.
martin
___
rspec-users mailing list
rs
d still be a handy way 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
9:
10: <%=h item.name %>
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 mai
lpers/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
e. I wanted to
get an opinion 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 list
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,
M
at 2009-04-19
20:55:07) [GET]
Item Load (0.3ms) SELECT * FROM `items`
Rendering template within layouts/application
Rendering items/index
Completed in 35ms (View: 23, DB: 1) | 200 OK [http://192.168.192.25/items]
(see also http://www.pastie.org/451600 for the logs)
Any idea what
es/2008/03/31/using-rspec-have_tag/ which is a
nice introduction to it.
Thanks again,
Martin
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
needed for the view?
Thank you,
Martin
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
produces a fail, however, because the data in
tables remain. This is somewhat inconsistent, too. Running it twice
produces a pass.
Any ideas? How can I ensure that the database -- or at least the
tables for the two models -- is empty?
--
Martin Streicher
Fresh Pixels and Bytes (and now Commas
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 violat
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:
it'
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 yo
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 d
own errors?
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. Unfortunate
Hi Folks,
Quick question.
Anybody know if there is a command line option to run an individual
scenario for the given story
e.g. something like:
ruby stories/my_story.rb -s "the name of the scenario"
Thanks in advance,
Martin.
PS: Really loving story runner at the moment. Got it
48 matches
Mail list logo