similar to: catching errors, rspec basics

Displaying 20 results from an estimated 5000 matches similar to: "catching errors, rspec basics"

2013 Mar 04
3
Excel User interface for R
HI, Assume I have the data frame generated from R as the following: Product Price market_share A 100 10% B 110 9% C 120 20% D 90 61% What I want to do is to have this kind of excel user interface by changing price of certain products, to get the impact of market share generated from R: if I change A
2013 Mar 15
2
How to make the labels of pie chart are not overlapping?
I have the following dataframe: Product predicted_MarketShare Predicted_MS_Percentage A 2.827450e-02 2.8 B 4.716403e-06 0.0 C 1.741686e-01 17.4 D 1.716303e-04 0.0 ....... Because there are so many products,
2009 Jul 18
1
[LLVMdev] speed and code size issues
I'd look at if_spppsubr.o, which is big in the llvm directories and doesn't appear in the gcc directory listings at all (I assume the listings were fed through tail or something, but there's clearly a sizeable difference there) On Jul 17, 2009, at 5:41 PMPDT, Daniel Dunbar wrote: > On Fri, Jul 17, 2009 at 5:12 PM, Jonathan Gray<jsg at goblin.cx> wrote: >> On
2007 Sep 20
4
alias :calling :lambda
Sprinkling my examples with ''lambda'' has always seemed like a bit of a wart to me. I''ve gotten into the habit of adding ''alias :calling :lambda'' to my spec suites. My examples then look like: calling { Foo }.should raise_error calling { Bar }.should_not raise_error Is there a reason that RSpec core has chosen not to make exception expectations more
2013 Jul 04
3
odd inconsistency with nfs
I'm having an interesting/odd problem with nfs (I think). We recently (Monday/Tuesday) upgraded our file server from an ancient redhat 7.3 system to a shiny new centos 6.4 system. We don't see any issues between the other centos boxes, but things get a bit weird when we start mounting on the old solaris clients. The initial symptom was that the 'tab complete' wasn't
2009 Jul 18
3
[LLVMdev] speed and code size issues
On Fri, Jul 17, 2009 at 04:41:55PM -0700, Eli Friedman wrote: > On Fri, Jul 17, 2009 at 4:14 PM, Jonathan Gray<jsg at goblin.cx> wrote: > > This seems to go against notes such as > > http://clang.llvm.org/features.html#performance > > which claim clang is signifcantly faster than gcc. > > I think the URL you want is actually >
2007 May 20
9
How to test for exceptions
Hi folks, I''m in the process of converting a Test::Unit functional test to RSpec, but I''ve run into a slight problem. I tried looking through the documentation but I still don''t know what I missed. Thanks in advance, Blake describe VenuesController, "on update" do before(:each) do @venue = mock("venue")
2019 Aug 13
4
ORC v2 question
Hi Lang, On Tue, 13 Aug 2019 at 22:03, Lang Hames <lhames at gmail.com> wrote: > When you say your code is not getting optimized, do you mean that IR optimizations are not being applied, or that codegen optimizations are not being applied? > > What do you see if you dump the modules before/after running the pass manager on them, like this: > > dbgs() << "Before
2007 Nov 17
7
Down with Lambda!!
Rspec is all about using natural language to define behavior. In this context, I feel that lambda is sorely out of place. I was chatting on #irc and a pal of mine (wycats) proposed an interesting alternative: alias_method :doing, :lambda so instead of something like lambda {post :create, {:title => nil}}.should raise_error(ActiveRecord::RecordInvalid) we get doing {post :create, {:title
2009 May 02
10
Problem verifying routing error
Hi, When upgrading to rspec/rspec-rails 1.2.6 gem (from 1.1.12), I''m having a new problem verifying routes that should not exist. This is to support something like this in routes.rb: map.resources :orders do |orders| orders.resources :items, :except => [:index,:show] end I used to use lambda {}.should_raise( routing error ), but it stopped detecting any raised error.
2008 Mar 17
4
RSpec''ing model association callbacks
Hi all, i''m learning rspec and i must admit i really love it. But at the time i started learning it, i already developed my models classes and their callbacks. Now i''m trying to get a 100% coverage of my code but i cannot reach it because i do not understand how to spec my callbacks. Look at this for example: ----------------- User Model class User < ActiveRecord::Base
2007 Nov 23
3
optimizing traffic to a web server
Hi, I have a Linux server and provide Internet access in the neighborhood and I also run a web server on the same machine. Although our external connection is not bad, the access to the web server from outside is awful - the web pages always require "Try again" when accessed. Do you think I can prioritize the traffic to the web server? How? I have a traffic shaper of the internal and
2005 Oct 24
3
Unable to use forms after login generator
I''m using rails 1.8 and login generator 1.1. I''m using rails to manage the contents of my website. I decided to put an admin page for the content management. For the sake of convenience, I used Login Generator. Now when I go to edit or create new content (for now, just posts), it gives me the following error (this one is for new posts): NoMethodError in Goblin#new Showing
2009 Jul 18
0
[LLVMdev] speed and code size issues
On Fri, Jul 17, 2009 at 5:12 PM, Jonathan Gray<jsg at goblin.cx> wrote: > On Fri, Jul 17, 2009 at 04:41:55PM -0700, Eli Friedman wrote: >> On Fri, Jul 17, 2009 at 4:14 PM, Jonathan Gray<jsg at goblin.cx> wrote: >> > This seems to go against notes such as >> > http://clang.llvm.org/features.html#performance >> > which claim clang is signifcantly
2007 Dec 12
5
bgp require in multigateway routing
hi all, first i wann to explain my network & it''s problem, i am using a redhat el5 for multigateway routing, i have 3 adsl lines which is connected with eth0, eth2 and eth3. eth1 is my local network. those 3 lines comes with adsl modem from same isp with equal bandwidth (512 Kbps). In this adsl modems there is one lan and one wan port, adsl modem''s lan ip is gateway for my
2005 Jan 26
1
Persistent audio streams?
On Sunday 23 January 2005 12:08, you wrote: > The question is, why are the clients dropping? It could be your net > flaking out. I've even heard of some ISPs cutting connections every > 24 hours. Bingo. The stream drops at exactly midnight every night. Right on schedule. I expected better, especially since I'm paying extra for a business-level DSL connection. I guess I
2013 Dec 12
2
Stdlib and Defined Types
All, Does anyone know of a way to add a file-centric backtrace to the validate functions in the Stdlib? If you use a validator in a defined type, you end up not having any idea what actually threw the error. Though much has moved to parameterized classes, there are still times when defines are useful and it would be nice to know what calling class/define/stack was blowing up. Thanks, Trevor
2007 Apr 17
8
Verifying that a block calls a method
I have something like the following: def my_fun my_fun2 do raise Error end end I know that I can verify that the method receives my_fun2. How can I mock/stub out the example to verify that it calls raise Error? Scott
2009 Jul 17
0
[LLVMdev] speed and code size issues
On Fri, Jul 17, 2009 at 4:14 PM, Jonathan Gray<jsg at goblin.cx> wrote: > This seems to go against notes such as > http://clang.llvm.org/features.html#performance > which claim clang is signifcantly faster than gcc. I think the URL you want is actually http://clang.llvm.org/performance.html. The difference isn't as dramatic when you consider code generation, at least for the
2009 Oct 26
17
[Bug 1667] New: sshd slow connect with 'UseDNS yes'
https://bugzilla.mindrot.org/show_bug.cgi?id=1667 Summary: sshd slow connect with 'UseDNS yes' Product: Portable OpenSSH Version: 5.2p1 Platform: All OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: sshd AssignedTo: unassigned-bugs at mindrot.org ReportedBy: