Displaying 20 results from an estimated 1000 matches similar to: "Textmate RSpec Bundle ''it'' snippet"
2008 Mar 08
10
rspec groups?
One of the things I really liked about TestNG was the grouping
feature. Are there any plans for rSpec to incorporate that? Is there
any way to emulate that functionality in rspec?
Will.
2008 May 10
4
Newbie: lambda do...end.should change(Model, :count).by(1). Doesn''t work
Hi to everyone,
I''m an RSpec, and BDD in general, newbie so in order to learn I have
chosen to use my personal website as a tesbed.
I''m having difficulties juggling with mocks, and in particula with the
following code.
Here''s the controller action:
def create
@album = Album.new(params[:album])
if @album.save
flash[:notice] = "album saved"
2008 May 29
7
how to write spec for infinite loop?
Hi,
I''ve got trouble when describe infinite loop.
code snippet:
def start_loop
while true
data = self.server.handle_client
if data
self.manager.dispatch(data)
end
end
end
without the loop, it is easy to test the logic.
but how can I describe it to tell the developer ( me :-) ) that there
should be an infinite loop inside.
thanks.
Regards,
Peng
2008 Jan 31
11
ZenTest-3.9.0 incompatible with RSpec-1.1.2
Hey all,
Just a heads up that the ZenTest-3.9.0 release is not compatible with
RSpec-1.1.2. I thought I had a release ready to go, but differences
between a preview release of ZenTest that I received and the actual
release seem to have broken compatibility.
We''ll get this resolved soon, but in the mean time please hold off on
upgrading to ZenTest-3.9.0 if you''re using RSpec.
2007 Nov 21
6
route_for and nested resources
I can''t figure out how to make the updates to allow for the route_form
method to return a url that matches the expected.
Here is a sample
route_for(:controller => :task, :action => :new).should == "/task/new"
If a task has to be created for a user, how exactly do I do this. The
following doesn''t work:
route_for(:controller => :task, :action => :new,
2010 Nov 16
4
view.should render_template best practices?
I''ve been looking for the definitive answer for months now, and the
RSpec book doesn''t touch on it at all:
How do we now handle stubbing out rendering of partials in view specs
in RSpec2?
I have a large (35K+ lines of views and related specs) that I''m trying
to upgrade to Rails3/RSpec2. My views use partials pretty extensively
and this issue is a huge blocker for me.
2008 Aug 29
3
BDDish rspecish question
Hey list,
This is a kinda quirky question for this list, but I do think it
belongs here. I''m currently writing an app with users with different
roles. Roles are sequentially so to speak, so role 2 can do everything
role 1 can, and so on.
If I truly test my whole app, I should test all behaviour for each
role, I guess. I could solve that by doing some clever shared steps
and
2007 Oct 31
5
Rspec Release Plan (was Am I missing something with Heckle?)
On Oct 31, 2007 11:36 AM, Scott Taylor <mailing_lists at railsnewbie.com> wrote:
> When can we expect the next release of rspec?
Definitely by the end of November.
Likely by mid-November.
Hopefully in a matter of days.
The next release will be 1.1.0.
We''re going to a release model in which 1.odd.x will be considered
experimental. This means that while we will document
2008 Jan 10
21
Shoulda
Hey, we''re currently using shoulda (http://dev.thoughtbot.com/
shoulda/) on a project and I saw some things that would be really nice
to see in rspec, namely the should_ methods, and especially the
should_be_restful method. Do these go against the rspec goals at
all? Or could an ambitious programmer go to town implementing these
for rspec_on_rails?
Nathan Sutton
fowlduck at
2007 Dec 20
19
Story runner rake task
What''s the status on a rake task for the story runner. If nothing is
in progress, where could I start to try and build one?
JD
2012 Jul 13
4
[LLVMdev] adding new data types to llvm
Hello .
I would like to add new custom data type to llvm C parser, I use LLVM/Clang version 3.1.
Adding new type instructions from llvm.org site are out of date (http://llvm.org/docs/ExtendingLLVM.html#type).
Could you please provide me with guidance?
Thanks in advance,
Edvard
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Jan 11
5
Missing methods
We have a custom implementation of the Mother Object idea. It''s inside
of a module, basically like this:
module Factory
%w(account friendship person invitation message asset email_address
birth).each do |klass|
eval <<-EOF
def self.create_#{klass}(attributes = {})
default_attributes = valid_#{klass}_attributes
#{klass.camelize}.create!
2012 Jul 24
4
[LLVMdev] loop detection
Hello .
I'm trying to implement FunctionPass for detecting loops in llvm IR.
How can I get <condition> for loop from llvm::Loop object.?
Is there any example?
Thanks in advance,
Edvard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120723/85e7f2f9/attachment.html>
2012 Jul 25
2
[LLVMdev] regarding opt -indvars
Hello .
opt -indvars pass does not generate canonical induction variable.
(NULL == loop->getCanonicalInductionVariable();)
PLEASE explain why? and how can I fix it?
Thanks in advance,
Edvard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120724/92a28ed5/attachment.html>
2012 Jul 23
1
[LLVMdev] llvm::LoopPass
Hi Edvard, _ZTIN4llvm8LoopPassE is "typeinfo for llvm::LoopPass". LLVM is
built without typeinfo, so you will need to build your pass with -fno-rtti.
Ciao, Duncan.
> I'm trying to implement LoopPass.
> Here is simple code :
>
> class LoopParser: public llvm::LoopPass
> {
> public:
> static char ID;
>
> public:
> virtual
2015 Jan 06
3
Radeon graphics problems with CentOS 6.6
On Sat, Jan 3, 2015 at 2:27 PM, Darby Vicker <darby.vicker at gmail.com> wrote:
> On Saturday, December 20, 2014, Darby Vicker <darby.vicker at gmail.com> wrote:
>>
>> I thought about trying centos 7. But in the end that doesn't really
>> help me since I'm trying to keep my current centos 6 installation
>> working. I don't really have the
2012 Jul 23
0
[LLVMdev] llvm::LoopPass
Hello .
I'm trying to implement LoopPass.
Here is simple code :
class LoopParser: public llvm::LoopPass
{
public:
static char ID;
public:
virtual void getAnalysisUsage(llvm::AnalysisUsage &AU) const
{
AU.addRequiredID(llvm::LoopSimplifyID);
AU.addPreservedID(llvm::LoopSimplifyID);
AU.addRequired<llvm::LoopInfo>();
}
2014 Dec 21
2
Radeon graphics problems with CentOS 6.6
I thought about trying centos 7. But in the end that doesn't really
help me since I'm trying to keep my current centos 6 installation
working. I don't really have the time/energy to reinstall everyting
under CentOS 7 right now.
I was able to get a 6.6 LiveCD built myself. The liveCD has the same
problem - X doesn't work. I can boot the "Basic Video" option from the
2008 Jan 31
4
reby-debug and rspec
How do I use the ruby debugger with a specific test (not the whole spec file)? I want to do something like this.
$ rdebug spec/models/user_spec.rb -s "should error if not new_record"
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
2008 Mar 13
3
Stories (well, integration tests) which aren''t plain text
Hi,
Having just played with getting my first plain text story working, I
like how it all fits together. It worked out nicely.
However, I don''t feel our project needs to have stories as plain text,
in fact it''s a slight hindrance for us. Is there any sensible
mechanism for doing integration testing using rspec without plain text
stories?
Thanks,
Rob