Displaying 20 results from an estimated 2000 matches similar to: "*what* to test?"
2008 Jan 08
47
specs on private methods
How does a person test private methods?
Is there a way to declare them as private, but retain any tests that
were written during the initial development?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Nov 07
7
should_redirect_to in advance - feels unnatural
I can understand that it''s easier for rspec to set up a mock in advance
of the controller call. But it makes it difficult to do something like:
context "The HarkController, given Louie the logged-in user" do
setup do
post :login, :username => ''louie'', :password => ''atest''
end
specify "should redirect Louie to the home
2006 Aug 12
1
Strategy pattern: comparing Context/Specify to Given/When/Then
Comments and suggestions for improving the specifications are welcome.
Thanks,
Alvin
One example comparing context/specify (CS) with given/when/then (GWT)
with a strategy pattern follows:
Consider a pipeline transporting oil supplied by multiple partners.
The amounts transported on behalf of each partner are recorded as
transactions in a general ledger.
There are multiple approaches to
2007 Feb 01
3
should_redirect_to in rspec-0.8.0 / rspec_on_rails 1453
I have a spec:
specify "a post with no user id should add a record" do
post :edit_or_create, :user => {:login => ''joeschmoe'', :email =>
''joe at shmoe.com'', :email_confirmation => ''joe at shmoe.com'', :full_name
=> ''Joe Schmoe''}
assigns[:user].should_not_be_nil
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
2006 Aug 28
1
slightly different view
All,
One of the things I learned when I started to do TDD was that you
should write enough tests to give you the courage to move forward. For
some, that results in more tests than others.
In approaching BDD, my initial thinking was to write examples for all
of the possible behaviours in every context. I''ve had a change of
thinking on this. Please check out my blog on it and let me know
2008 Jun 09
4
YUI vs GWT vs ExtJS vs ????
I would like y''all''s opinions on ease of implementation into Rails,
quality and quantity of widgets etc between Yahoo User Interface and
Google Web toolkit and ExtJS. I am just getting ready to invest a
huge amount of effort into one of them and I would like to know what
the community''s experience has been with these toolsets. OR.. is there
a better open source set of
2018 Jul 23
2
Ubuntu issue with 18.04 Bionic Beaver
Dear Debian persons
I would like enquire about whether the repository
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
I tried to follow the instructions and I cannot get R3.5.1 - I get R3.4.4???
I have been able to install R3.5.1 on Ubuntu 16.02 using the xenial-cran35/ repository & so not sure if the bionic link is up to date?
thanks in advance
Regards
Alison
2006 Jan 20
4
REST API''s and querying a graph of objects
Hey all,
I am wondering if anyone has given thought to using REST / XPath as
querying mechanism. That way you could have a URL that actually maps
to a collection of records (objects, really) that meet a certain
criteria and that are sorted a certain way.
Mike Pence
2011 Jan 02
2
incoming
Is it possible to have
Calls incoming to different DIDs?
I want an AA that handles 100s of businesses.
[Incoming-pizza]
Exten => 4045551212,1,Goto(pizza,s,1)
[Incoming-hvac]
Exten => 8085551212,1,Goto(hvac,s,1)
[Incoming-gutter]
Exten => 6175551212,1,Goto(gutter,s,1)
2009 Mar 20
2
New User Issues
I just found RSpec and was trying to do the example on the main page for
RSpec (the bowling example). I''m using Ubuntu and did the normal "sudo gem
install rspec" and then tried to create the bowling_spec.rb file. When I ran
spec bowling_spec.rb, I was missing the cucumber gem, installed that, reran
and was missing the hoe gem, installed that, reran and it gave me the a
missing
2005 Dec 15
2
Rails Tagging Generator?
Hey all! Just finished my first Rails app on 1.0 day and even got paid
for it! Great stuff and much thanks to the many generous souls in IRC,
especially ezmobious, who helped me through.
For my second Rails app, I want to use tagging. I am wondering if
there is a Tagging Generator or some other existing implementation I
can borrow from?
Best,
Mike Pence
Boca Raton, FL
2006 Oct 02
3
RSpec 0.6.4 released
We''ve released RSpec 0.6.4. Check it out! Check it out!
Release info:
http://rubyforge.org/frs/shownotes.php?release_id=7178
General info:
http://rspec.rubyforge.org/
Questions? Right here!
Enjoy,
David
2006 Jan 18
6
Ruby and Flash?
Hi there,
I have an idea for a game I want to build, but it requires Flash as the presentation layer (I''d want to do the back end in Ruby running on Rails.) I have not been able to find any info on the integration of the two, and someone suggested asking here. Any info would be appreciated. Any links to examples would be great too.
Thanks - please make sure you respond to me directly
2005 Dec 29
7
Laszlo on Rails kicking off
The Laszlo on Rails effort, bringing the rich web interface of
OpenLaszlo (http://openlaszlo.org) to the simplicity of Rails
(http://www.rubyonrails.com) will be kicking off next week.
We have a list going at
http://groups.google.com/group/laszlo-on-rails/ -- 88 people so far
and we haven''t even begun! -- but if you really want to be close to
the action, email me with your firstname,
2004 Jan 09
2
Smb signing - how can I check?
Howdy,
Does anyone know how to check the samba setting of "smb signing"? There is
a data write error that can happen with the signing, and I'd like to check
my samba servers.
See
http://www.eweek.com/article2/0,4149,1415221,00.asp
and
http://www.tangent-systems.com/support/delayedwrite.html
Alan Pence
System Administrator
"The smart ones ask when they don't know. And,
2008 Feb 29
5
outside-in = integration tests on views?
Hi,
In the spirit of "outside-in" are given-when-then scenarios supposed to be
integration tests of views? Or should we be accessing the model interfaces
directly (not through a view)?
Thanks,
David :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080229/dc6b1660/attachment.html
2006 Nov 01
1
Referencing a plugin in a spec
I am writing some specs that use ActiveMerchant to talk to a cc provider.
When I try to "include ActiveMerchant::Billing" in my spec, it tells
me it can''t find the plugin:
./activesupport/lib/active_support/dependencies.rb:123:in
`const_missing'': uninitialized constant ActiveMerchant (NameError)
Do I need to explicity require the main plugin file?
Thanks,
Mike Pence
2006 Jul 25
1
Blank map?
Hey all,
I''m a little frustrated here. The controls for the Google Map show up,
but the map itself seems to either never appear or to briefly flicker
onto screen, then to disappear.
My controller is simply this:
@map = GMap.new("map_div")
@map.control_init(:large_map => true, :map_type => true)
@map.center_zoom_init([0, 0], 6)
and my view is this:
2006 Jan 19
1
Relationships, relationships, relationships!
If I had my very own sweaty, wind-up Ballmer
(http://www.ntk.net/ballmer/mirrors.html warning: mind-scarring
video), that is what he would be saying:
"Relationships, relationships, relationships!!"
My unscientific polling of the traffic in #rubyonrails and here is
that, second to deployment issues, this is the bigges FAQ for Rails:
how to do relationship x in ActiveRecord.
There seems