Displaying 20 results from an estimated 80 matches similar to: "Sharing: dont_repeat_yourself plugin custom RSpec matcher"
2007 Jun 06
2
sharing my netvibes tab about rspec
Link was 404 :-(
the correct link is
http://21croissants.blogspot.com/2007/06/rspec-changes-log-rss.html
I should definitely switch from blogger to mephisto ...
Hi,
As I am not a big fan of mailing list, I have created a Yahoo!Pipes to
generate a RSS from the user & developpers mailing list and integrated it
into a netvibes tab. I have also put a few blogs from the rspec authors.
More
2006 Jan 19
10
Where to place uploaded files for later download?
Hi there,
I am working in a RoR application which allows certain users
to upload files. Currently I store these files
in a directory called "files". This directory is located in
the RoR application directory:
rails/rails_application/files
So users don''t have access to them.
Now I want users to be able to download some of these files
(they will search based on some
2007 Jan 10
3
Rails 1.2.0 RC2 has 4125 duplicate lines
I have been evaluating the excellent and super fast Similarity Analyser
by Red Hill Consulting to generate a dupplicated lines reports from
Rails 1.2.0 RC2 source code (excluding the tests).
On the 10th of January 2007, Rails 1.2.0 RC2 has 4125 duplicate lines
in 793 blocks in 231 files
* actionmailer has 584 duplicate lines in 107 blocks in 20 files
* actionpack has 718 duplicate lines
2008 Feb 06
1
RSpec 1.1.3 + ZenTest 3.9.1 + Rails 1.2.6 do NOT ignore folders ^vendor/*
Hi,
I just updated to the latest RSpec 1.1.3 + ZenTest 3.9.1.
I also have rspec 1.1.3 installed as a gem
When starting autotest with -v option, there is a lot of noise because
autotest does not ignore the vendor folder, the migrations, etc ...:
Dunno! vendor/plugins/acts_as_solr/solr/lib/jetty-util-6.1.3.jar
Dunno!
2007 Jan 10
1
Solution for undefined method `use_transactional_fixtures=' ... problem
If you see this error message:
undefined method `use_transactional_fixtures='' for
Test::Unit::TestCase:Class (NoMethodError)
You should check all your dependencies, all the lines containing
require and especially require_dependency.
You have probably done a refactoring "Rename" a class and forgot to
propagate the change everywhere!
More details on
2007 Feb 18
1
get() method in custom expectation matcher?
I''m trying to write a custom expectation:
controller.should_require_login_for(:action_name).
I''m using the example in the docs for ''Custom Expectation Matchers'' but I''m
unsure how to make the get() method available to my ShouldRequireLogin
class. I''ve tried requiring spec_helper but no joy.
can anyone help?
thanks
--
View this message in
2007 Nov 26
0
custom matcher tutorial
I wrote some quick notes up on a custom matcher I wrote around a
pattern that I am using constantly.
http://smartic.us/2007/11/26/rspec-matcher-for-active-record-associations
You could use it as a custom matcher tutorial for the uninitiated or
as a possible solution for validations specs for the more advanced.
Or you could use it to school me, and explain why my code sucks :)
bryanl
2008 Jan 24
1
Constant definition matcher
Hello all,
I need to specify that a class should define a constant.
I couldn''t find something such as "should define_const(''MY_CONST'')" in
the RSpec documentation, even though there are similar matchers such
as "should respond_to".
I know I can write the matcher myself (that wouldn''t be so difficult)
but is there a reason ?
Thanks!
2007 Oct 25
0
Fwd: [ mocha-Feature Requests-15021 ] without or not params matcher
---------- Forwarded message ----------
From: noreply at rubyforge.org <noreply at rubyforge.org>
Date: 25 Oct 2007 14:01
Subject: [ mocha-Feature Requests-15021 ] without or not params matcher
To: noreply at rubyforge.org
Feature Requests item #15021, was opened at 2007-10-24 15:33
You can respond by visiting:
2007 Apr 25
0
Redcloth bug - Stack overflow in regexp matcher
Hi,
I''ve been using the rassmalog static blogging engine and have
encountered a stack overflow inside the redcloth regexp matcher. I
don''t seem to suffer this error on my Ubuntu (Feisty Fawn) box (with
Ruby 1.8.4??), but I do get it on my Gentoo system. Running the
following line will generate it (I''ve attached the YAML/redcloth file
to this message).
$ ruby -ryaml
2010 Jun 28
1
have_tag matcher in rspec 2?
I always assumed have_tag was part of rspec, but it''s not in rspec 2,
and looking now I don''t see it in rspec 1 either. Webrat defines it, but
that seems like a coincidence (I tried requiring webrat/core/matchers to
no avail).
Is it depricated, not yet implemented, or does it work for everyone
else?
My project is from scratch, rspec-rails 2b13, using generated
spec_helper.
2005 Oct 09
1
Preparing the 2.0.3-pre2 release (regex matcher)
On 10/1/05, Arnaud Quette <aquette.dev@gmail.com> wrote:
> I've decided, as an exception (the second with the ones for 2.0.2,
> but hey, nut has a lot of late to resorb) to merge the USB
> improvements from the CVS Development branch.
I took a look at backporting tripplite_usb to Testing. I don't see the
regex matcher, though. Do we want to merge that, too? Or should I
2016 Mar 10
0
Query regarding Xapian-Matcher Optimisation Project, GSOC-2016
Hello Sir/Ma?am
I beg to state that I was looking for a project In GSOC 2016 which matches
my skill and passion, and I came across Matcher Optimisation, Xapian. This
project has really captured my interest and I would love to contribute to
this project.
I am a computer engineering undergraduate so I am good at programming
languages (especially C and C++), algorithms, logical and analytical
2012 Mar 31
1
[LLVMdev] LLVM Instruction selection matcher
I have a few questions about matching in the selector.
1. Why does the size of the MatcherTable greatly exceed the number of
patterns defined in the target description? If it simply contains all the
variants of the patterns then what is the encoding of these entries ?
2. Is there a simple way to extract the root opcode of a pattern from the
MatcherTable entry ?
3. I believe the entries in the
2011 Mar 22
1
GSOC 2011 : Weighting Schemes and Matcher Optimisations
Hello,
My name is Santiago Pina and I am currently studying two BSc(Hon)
simultaneously ; one in Computer Science and the other in Mathematics as
part of a pilot project at Universidad de Murcia. I am very excited to
contribute in open source community through the platform of Google Summer of
Code 2011. I was interested in the Weighting Schemes project and in the
Matcher Optimisations project,
2007 May 19
2
have_text matcher does not support should_not.
Hello Guys,
Doing conversion of some test for some controllers, still with integrated views.
Anyway, I have this:
it "should not see Join This Group button on profile page as member" do
get "show", :id => @group.id
response.should be_success
response.should_not have_text(/Join This Group/)
end
But running with spec (0.9.4), drop me the folling error:
2017 Aug 02
2
Segmentation fault in matcher/queryoptimiser
Olly, thanks for your feedback.
On Mon, Jul 31, 2017, at 23:29, Olly Betts wrote:
> On Mon, Jul 31, 2017 at 09:24:29AM +0200, Robert Stepanek wrote:
> > We'd appreciate any hints on how to fix this. I've written up our
> > findings and solution attempts below. Should we post this on trac?
>
> Yes, it'd be good to have a ticket to track this.
I've created
2016 Nov 26
2
Looking for help with an ast matcher
Hi,
Hope this is the right channel for this question. I am trying to make an
ast matcher for clang-tidy to find str1.compare(str2), where both str1 and
str2 are std::string. I have this so far: http://i.imgur.com/sUma9WC.png .
But I am having a hard time finding a way to bind an id to the str1 part of
the expression.
Can anyone help me out with an idea?
Best regards,
Mads Ravn
--------------
2020 Feb 19
2
i1 true ^= -1 in DAG matcher?
Hello,
It looks like that in the DAG matcher, the DAG has a xor with '-1' for
checking a true value vector
for instance,
%cmp4.i = icmp ne <8 x i32> %6, %5
%7 = xor <8 x i1> %cmp4.i, <i1 true, i1 true, i1 true, i1 true, i1 true, i1
true, i1 true, i1 true>
[use of %7]
results in vector of '-1' in the DAG. This also seems the reason why
LLVM's vnot PatFrag
2016 Jul 26
2
[PATCH] Add support for the 'unless' matcher in the dynamic layer.
I was wondering if there is any objection to removing the 2-element minimum
on the eachOf, anyOf and allOf matchers.
It is frustrating when playing with matchers to have to edit significant
amounts of code to be able to temporarily go from 2 to 1 matcher inside an
any- or allOf matcher.
And overall it feels very "un-set-theory"-like.
The change was made here: