search for: takita

Displaying 20 results from an estimated 35 matches for "takita".

Did you mean: makita
2005 Sep 13
6
form_tag & form_remote_tag html id attribute
Hello, Is there a way to set the html element id for the form_tag and form_remote_tag on the server side? I want to have this resultant html... <form id=''something'' ... ... </form> Thank you, Brian Takita
2006 Nov 21
10
Rspec Brown Bag
...nefits to using rspec and are excited by it, so I do have "allies". :) I''m particularly interested in showing: - How BDD is really good TDD without sounding religious - How rspec encourages developers to create better "tests" than Test::Unit Thank you, Brian Takita -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20061120/f45ad744/attachment-0001.html
2007 May 02
4
Terse Mocks
...).with(1,2) {:bar} the_mock.expects(:baz).with(3,4).returns(:foobar) Here is an ActiveRecord type example of the mock block syntax: User.mocks do find(''3'').once {user} destroy(7) end I don''t think this would be too difficult to implement either. WDYT? Thanks, Brian Takita
2006 Oct 04
3
do we need stubbing?
Hey all - The trunk currently supports three types of mocking/stubbing: Mock Objects (created dynamically at runtime) Partial Mocking of methods on existing classes Stubbing of methods on existing objects or classes The main difference between Partial Mocking and Stubbing is that Stubs don''t verify. I''m wondering if we really need the stubbing facility at all, given that we
2006 Nov 09
2
Focused Specs/Tests in Non-Textmate editors
Hello, I wrote a script that runs a focused spec/test from the filename and line number. I bound this to an external tool in my Idea environment. http://weblog.freeopinion.org/articles/2006/11/04/focused-unit-test-spec-script Brian -------------- next part -------------- An HTML attachment was scrubbed... URL:
2005 Dec 21
3
Patch Cycle
...efore I made changes) and seems unrelated. <http://dev.rubyonrails.org/ticket/3287> This is my first patch that affects any code in Rails. How long does it typically take to get feedback on a patch of this nature? Are things backlogged right now with the release of 1.0.0? -- Thank you, Brian Takita http://weblog.freeopinion.org _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
2005 Dec 08
1
SwitchTower, Apache, and Routing Errors
...route as the lowest priority. > map.connect '':controller/:action/:id'' > map.connect '''', :controller => ''home'', :action => ''show'', :title => > ''Welcome'' > end > -- Thank you, Brian Takita http://freeopinion.org _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
2006 Nov 21
5
Specification Reuse to avoid Combinatorial Explosions
Hello, While reading Dan North''s BDD tutorial <http://dannorth.net/introducing-bdd>, I tried to implement his ATM example as spec stubs. When I first implemented it creating a context for each of his scenarios, I noticed that there is duplication and a combinatorial explosion of the specs. I attached the full files to this email. For brevity, I will use scenario 1 in the body of
2006 Nov 01
1
revision 1000
Brian Takita committed revision 1000 last night. I don''t know what that means - but it seems like an interesting milestone. Congrats to Brian for hitting 1000. Congrats and thank to all of those who have contributed by providing ideas, code, feedback, or simply using rspec and spreading the love. Che...
2007 Oct 26
4
spec_server doesn''t update ''required'' files
I have some specs that ''require'' other files. When running spec_server, if these required files are changed, it''s not picked up when the specs are run. I have to restart spec_server to get the changes recognized. Is there an option or some such to have spec_server reload required files as well when a spec is run? Thanks, Steve
2007 Nov 28
6
textmate bundle
Does anyone else have issues running rspec textmate bundle? I''ve got revision 2997, but the blasted thing just won''t run. It is checked out to my /Users/zdennis/Library/Application Support/TextMate/Bundles/RSpec.tmbundle When it runs I get the below error... "textmate" is not a valid class name
2008 Jan 02
2
Proxies
I really like the idea of Mock Proxies as explained in Brian Takita''s post here: http://pivots.pivotallabs.com/users/brian/blog/articles/352-introducing-rr I posted to this list eariler with an incomplete implementation of .stops_mocking in the thread "Mocking Time, delegating to original object." The Mock Proxy pattern would make this simpler....
2008 Jan 13
4
TextMate bundle not compatible with nested specs for running focused tests?
Seems like the recently updated (and wonderful) textmate bundle does not take into account running individual tests that are in nested specs. Anybody else notice this? Any ideas? Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080113/15d5cc2f/attachment.html
2009 Apr 22
15
Why RSpec?
I like Shoulda. Sometimes I like plain old Test::Unit. Cucumber gives me a different thought process. I''d just like to hear some thoughts on why RSpec? What does it buy me that I can''t get with Shoulda? I just can''t seem to think in RSpec. Where is there a good example of RSpec tests that will help me grasp the right path? Thanks! -- Amos King
2008 Aug 06
6
Event loop responsiveness + client
Hello, on the application that I''m working on, we are using Thin. The server implements long polling and commands that alter its internal state. Connecting to the long poll is a very fast operation, while updating the state of the server is a relatively slow operation. The long poll connection is held open until there is a change to be sent to the connection. Here is my current
2007 May 04
6
Rspec on Merb Plugin - Initial thoughts?
A couple days ago I submitted a patch, that was committed by Ezra, to the MrBlog project for the Rspec on Merb plugin. So far, it only works with ActiveRecord including fixtures. Has any played with it? If so, did you get it to work? I''m going to be submitting a patch for Controller specs soon. It will be very bare bones, given my current lack of understanding of Merb controller
2007 Nov 12
15
it "should [action] ..." vs it with an active voice
I''d like to start gathering information/debating on the advantages/disadvantages of using it "should ..." vs other techniques. Dan North explained why we should use should: http://dannorth.net/introducing-bdd/ I used to use it "should ..." for the projects I was on, until I was challenged by a fellow developer who started using it with an active voice. For example
2008 Feb 02
9
deep test with rspec?
All, Has anyone on this list tried to use DeepTest[1] with rspec? My initial attempts have failed so I would be really interested if someone has figured it out. Thanks. -Ben 1. http://www.somethingnimble.com/bliki/deep-test
2008 May 20
7
Expect with "real world" returns?
Is there a way to do something like this? class Foo def self.hello(name) "Hello #{name}!" end end Foo.expects(:bar).with("Carl").once assert_equal "Hello Carl!", Foo.hello Basically, my problem is that once you set an expectation, the original code is never executed and is not tested. However, it''s still very useful to set expectations to
2008 Jun 04
6
any_instance
...to convert the suite to RSpec mocks (because that''s what we''re using for the rest of the project) I had to give up. Attempting to replace objects by stubbing :new and returning mocks felt like a huge amount of busy work compared to one-line with any_instance. I noticed that Brian Takita appears to have an implementation of any_instance here: http://github.com/btakita/pain-point/tree/ca9a65e7110ccaa37175c741e1cea1aaa9776180/vendor/plugins/rspec/lib/spec/mocks which I tried, without success, to make work in my own version of rspec (1.1.4). I was able to call any_instance but it...