Displaying 20 results from an estimated 1400 matches similar to: "Using require_relative to speed up rspec require time."
2010 Sep 09
3
1.9.2 why does relative_require need an additional backtrack in path
Why does Ruby-1.9.2-p0 require an additional ../ for relative paths
when compared to the same code for ruby1.8?
if RUBY_VERSION < ''1.9''
require File.dirname(__FILE__) + library
else
require_relative File.dirname(__FILE__) + ''/..'' + library
end
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core"
2007 Jun 18
6
Something like rcov but more explicit?
Hey list,
Does anything exist that can show me which lines are explicitly tested? RCov
is great, but it doesn''t really give a sense of _actual_ coverage, indeed,
there is no guarantee that functions executed were in fact called as the
result of a line being tested.
I know nothing of the rspec internals, but would a simple list of executed
lines be a relatively simple feature to add?
2007 Jun 21
4
should_receive stubs methods?
Hey,
I''m using rspec and rails and have a spec that tests if a before_filter is
executed, I also have a spec that tests if a method called by the filter is
executed. It appears however that when I should_receive something, it is no
longer actually called when I fire the http request. I''m not sure how, or
where exactly I should manually fire the filter, either before or after the
2011 Mar 03
1
Does RSpec interfere with Pathname#dirname or Pathname#realpath ?
Hi,
I starting a new project, and have run into behavior I cannot
replicate in irb, (i.e. outside of using rspec) when the directory?
returns true, so I thought I''d ask here, in case any one has seen this
badhavior.
ruby-1.9.2-p136
rspec (2.5.0)
rspec-core (2.5.1)
rspec-expectations (2.5.0)
rspec-mocks (2.5.0)
When I try to run this spec:
require Pathname(__FILE__).ascend { |d|
2007 Jul 25
5
MockCov: Proof of concept
Hey list,
RSpec is great, I''ve been using it at work for a couple of months now. One
gripe I have is that I find it hard to know exactly to what extent my code
is covered by the specs. I am aware of RCov and Heckle; they''re great, but
I''d like to demonstrate another perspective of coverage analysis I''ve hacked
up.
The perspective is that of what is mocked and
2010 Nov 01
3
btrfs benchmark with 2.6.37-rc1
Here is a small btrfs vs. ext4 benchmark with kernel 2.6.37-rc1.
compilebench with options -i 10 -r 30 on 2.6.37-rc1
btrfs
==========================================================================
intial create total runs 10 avg 73.11 MB/s (user 0.34s sys 1.96s)
create total runs 5 avg 49.53 MB/s (user 0.41s sys 1.62s)
patch total runs 4 avg 22.13 MB/s (user 0.09s sys 1.79s)
compile total runs
2016 May 28
2
[LibFuzzer] Recent performance regression due to r270942
Hi,
This started as an off hand comment in [1] but this appears to be a
real issue so I'm moving the discussion to the mailing list.
In r270942 the time taken to run LibFuzzer's test became noticeably
longer. I am building on
* Arch Linux (4.5.4-1-ARCH #1 SMP PREEMPT Wed May 11 22:21:28 CEST
2016 x86_64 GNU/Linux)
* I am building libFuzzer and running its tests like so
```
2016 May 28
0
[LibFuzzer] Recent performance regression due to r270942
Reproduced, should be easy to fix. Will do it.
And thanks for noticing, on my machine this fails very fast and the test
passes because it sees everything it wants to see.
--kcc
On Fri, May 27, 2016 at 6:18 PM, Dan Liew <dan at su-root.co.uk> wrote:
> Hi,
>
> This started as an off hand comment in [1] but this appears to be a
> real issue so I'm moving the discussion to the
2007 Jun 27
1
rspec_on_rails: assert_select wrapper doesn''t play nice with XML
Hey,
I''m using rspec and rspec_on_rails to test some RSS feed views, the problem
is that the specs spew out messy warnings when they run:
ignoring attempt to close channel with link
opened at byte 61, line 3
closed at byte 141, line 5
attributes at open: {}
text around open: "ss version=\"2.0\">\n <channel>\n <title"
text around close:
2006 May 05
6
RJS implementation question
Why is RJS so dependant on programatic creation of Javascript?
RHTML is a great implementation in that it puts HTML first, and Ruby
second. I would have thought RJS would be the same way: a .js with ERb
helpers for generating Javascript functions.
RJS putting Javascript second means:
- I have to learn a whole new set of commands to use Scriptaculous.
- Developers have to constantly chase the
2000 Dec 15
0
sshd demons
Hi there, I'm having a problem with sshd demons not shuting down after
connection is closed.
The strange thing is that this is happening on both my Redhat 6.2 server and
Redhat 7.0, both running
OpenSSH_2.3.0p1. I'm positive that KeepAlive is set to yes !
Is this a common problem ? I'm suspecting that is has something to do with
the client as well. Think we're all using
2009 Sep 09
2
InvalidArgumentError throw using Turkish stemmer and posting text "'leri"
Hi all,
I've come across a very strange bug with Xapian 1.0.9.0 and the Turkish
query parser when trying to index a string (as posting) that looks like
this: "...bir araya getiren CD'leri son teknolojiyle piyasaya...". The
actual offending bit of the string is: 'leri
It throws the message I have shown below. The real annoyance is that I can't
seem to catch it because it
2011 Jan 25
2
FW: question about the pt() calculation
From: Leitch, Matthew C.
Sent: Monday, January 24, 2011 6:53 PM
To: 'info at network-theory.co.uk'
Subject: question about the pt() calculation
Hello
Thank you for your time. I am a graduate student at the University of Texas Medical Branch, and I was wondering if you could help me with a R program I am writing. I have some data that is stored a file that has 1733 rows and 4 columns.
2009 Sep 20
0
Re: reiserfs3/ext4/btrfs RAID read performance
On Sep 20, 11:50 am, wbrana@gmail.com wrote:
> On Sun, Sep 20, 2009 at 3:47 AM, Daniel J Blueman
>
> <daniel.blueman@gmail.com> wrote:
> > On Sep 19, 7:20 pm, wbr...@gmail.com wrote:
>
> >> RAID details:
> >>
> >> md8 : active raid10 sda7[0] sdd7[3] sdc7[2] sdb7[1]
> >> 62925824 blocks 256K chunks 2 far-copies [4/4] [UUUU]
>
2016 May 28
2
[LibFuzzer] Recent performance regression due to r270942
Done. r271095
On Fri, May 27, 2016 at 7:55 PM, Kostya Serebryany <kcc at google.com> wrote:
> Reproduced, should be easy to fix. Will do it.
> And thanks for noticing, on my machine this fails very fast and the test
> passes because it sees everything it wants to see.
>
> --kcc
>
> On Fri, May 27, 2016 at 6:18 PM, Dan Liew <dan at su-root.co.uk> wrote:
>
2006 Aug 31
2
lib/* doesn't get reloaded in development
Hi,
Am I right in thinking that whatever is in your lib/ folder doesn''t get
reloaded on each request in dev mode?
Jeroen
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2005 Nov 07
2
slow R start up
Hi,
I want to use R within a unix shell script where I repeatedly open
and close R (doing some computation within R whilst it is open). i.e.
something like
#!/bin/sh
R --vanilla << EOF
# some R commands
EOF
# some unix commands
R --vanilla << EOF
# some R commands
EOF
# some unix commands
...etc
the problem is that since I open and close R many times, the shell
script takes a long
2011 Oct 04
2
[LLVMdev] inlining of recursive functions
Hello,
In lib/Analysis/InlineCost.cpp, inlining of recursive functions is
disabled because it is
like loop unrolling. But
- I could not find a way to have loop unrolling do the job
- In the context of functionnal languages (I am implementing one), inlining
small recursive functions is often a great gain
My question is what is the cleanest and simplest way to inline small
recursive functions ?
2007 Jun 15
1
Problems with RCov and Rails
Hey list,
I''m trying to use the rcov integration that rspec provides in my Rails
application. As per the documentation on the website, I''ve created
the following rake task:
lib/tasks/specs_with_rcov.rake:
require ''spec/rake/spectask''
desc "Run all specs with rcov"
Spec::Rake::SpecTask.new(''specs_with_rcov'') do |t|
t.rcov = true
2018 May 07
0
[clang] Running a single testcase
On Mon, May 7, 2018 at 10:13 AM, Sedat Dilek <sedat.dilek at gmail.com> wrote:
> ...
>
> sdi at iniza:~/src/llvm-toolchain/build$ ./bin/llvm-lit -v
> ./tools/clang/test/Sema/asm.c
> llvm-lit: /home/sdi/src/llvm-toolchain/llvm/utils/lit/lit/llvm/
> config.py:334:
> note: using clang: /home/sdi/src/llvm-toolchain/build/bin/clang
> -- Testing: 1 tests, 1 threads --