search for: coreyhain

Displaying 20 results from an estimated 24 matches for "coreyhain".

Did you mean: coreyhaines
2008 Jan 13
10
.html.erb files and autotest
...atch for this, but I''m unsure where the specs would be to update. I found the necessary mapping in rspec_autotest.rb, but I can''t find any specs anywhere. Help? I just need to have /app/views/coupon/index.html.erb to map to /spec/views/coupon/index_spec.rb -Corey -- http://www.coreyhaines.com The Internet''s Premiere source of information about Corey Haines -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080113/686bf58f/attachment.html
2008 Jan 31
6
loading fixtures?
How do you load fixtures from specs as you would test? eg. rake db:fixtures:load RAILS_ENV=development -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080131/38c3b0ab/attachment.html
2008 Jan 23
18
Not seeing the failure
...d on my style, please feel free to mention it, as I''m still adjusting my mind to rspec) Oh, versions, I almost forgot: rails 2.0.2 rspec(_on_rails) plugins just updated from current a couple days ago, not totally sure how to get the versions of the plugins Thanks. -Corey -- http://www.coreyhaines.com The Internet''s Premiere source of information about Corey Haines -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080123/bf783be6/attachment.html
2007 Dec 27
5
ExampleGroup and SharedExampleGroup relationship(?)
...there is some hidden meaning, I''d love to hear it. I''ll post it as an update to the blog entry, too. Oh, and here are the links to the first few parts of the series if anyone is interested: It looks like I''ll be able to get about a post a week on it. part 1: http://www.coreyhaines.com/coreysramblings/2007/12/15/ARubyNewbieLooksThroughRSpecPartIWhatIsThis.aspx part 2: http://www.coreyhaines.com/coreysramblings/2007/12/15/ARubyNewbieLooksThroughRSpecPartIIDescribe.aspx part 3: http://www.coreyhaines.com/coreysramblings/2007/12/22/ARubyNewbieLooksThroughRSpecPartIIIDescribe...
2008 Jan 15
4
Okay, I''m finally asking for help
...end (the @vars are all set up) Here''s the method: def save_coupon @coupon = Coupon.new(params[:coupon]) @coupon.save redirect_to :action => :index end Now, I''ve tried it through the browser, and it works. Any thoughts? I appreciate it. -Corey -- http://www.coreyhaines.com The Internet''s Premiere source of information about Corey Haines -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080114/853a4691/attachment-0001.html
2008 Jan 27
20
OT local version control?
...or on a home server. If I run it off a home server, then it needs to support offline access, so that I can use a cached version when I''m not on my home network. For simplicity''s sake, running it locally is probably a better solution. What do you all use? -Corey -- http://www.coreyhaines.com The Internet''s Premiere source of information about Corey Haines -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080127/9121e93d/attachment.html
2008 Mar 04
2
textmate bundle
Hi, I''m just getting e set up on my machine, and I was wondering if someone could point me to the current rspec bundle for textmate? I googled and found a million of them, I think. Thanks. -Corey -- http://www.coreyhaines.com The Internet''s Premiere source of information about Corey Haines -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080304/3484d010/attachment.html
2008 Mar 05
2
Testing that a model helper method is called
.... class MyModel < ActiveRecord::Base is_encrypted end So, my question is, how do I write a spec to show that is_encrypted is called here? I would rather not write specs that say that the behavior is there, since I have tested the behavior already in my plugin. Thanks. -Corey -- http://www.coreyhaines.com The Internet''s Premiere source of information about Corey Haines -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080305/606e21ff/attachment.html
2008 Mar 19
3
ApplicationHelper
When working with views, I use instance methods of ApplicationHelper: # app/helpers/application_helper.rb: module ApplicationHelper def distribute(total, min, cutof, list) [1,2,3] end end # app/views/planner/_mta_colors.rhtml: <td> <% ... dist = distribute(total_v_px, 4, 0, colors.collect{|color| color[1]}) ... %> So to test the distribute method in ApplicationHelper, I have
2008 Mar 11
6
Story testing views in isolation
...our designer/business people a way to write stories to describe their user interface while they work on the prototype, then give us the stories to help us integrate their prototypes more safely. I realize that I could use examples for this, but I was hoping to use stories. -Corey -- http://www.coreyhaines.com The Internet''s Premiere source of information about Corey Haines -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080310/9273f15e/attachment.html
2008 Jan 20
2
Which taggable library do people use?
...the site I''m working on, and I wanted to get an idea of what people are using. I keep seeing that acts_as_taggable is deprecated, so I tried the acts_as_taggable_on_steroids. I also tried be_taggable. In any case, I figured I''d see what people use. thanks. -corey -- http://www.coreyhaines.com The Internet''s Premiere source of information about Corey Haines --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-ta...
2008 Jan 29
3
I thought the RSPec community might be interested
in my latest blog posting :http://talklikeaduck.denhaven2.com/articles/2008/01/29/why-i-dont-mind-using-rspec-in-fact-ive-come-to-love-it -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/
2008 Mar 14
2
Multiple should_receive(:render).with
I''m trying to specify that a particular view must render two different partials. My spec looks like: describe AClass do it do template.should_receive(:render).with(:partial => ''foo'', :locals => { ... }) ... end describe ''some conditional case'' do it do template.should_receive(:render).with(:partial =>
2008 Mar 04
3
rspec vs. test::more
Hey all, you HAVE to read this blog post: http://blog.jrock.us/articles/RSpec%20vs.%20Test::More.pod#comments My favorite parts are: 1) ... some rspec code ... > For the sake of comparison lets translate this directly into perl: ... some perl code ... 2) >First, notice that the rspec-version isn''t actually ruby code. It''s not any real language. For the sake of
2008 Mar 08
7
ridding away with do_request
I''m heading out of town, but had a quick thought I wanted to share. Rather then using ambiguous named request helpers in controller specs like "do_request", I''ve been using more readable helpers like "post_create". For example... describe ProjectController do def post_create post :create, ... end before do end it "creates a new
2008 Mar 21
3
Oh inheritacne, wherefore art thou
Is there anyway to achieve inheritance of specifications? Suppose I had an action like def index filter = params[:filter] ? params[:filter] : ''%'' order = params[:order] ? params[:order] : ''created_at DESC'' @posts = Post.find(:conditions => "title LIKE #{filter}", :order => order) ... end Now I might have half a dozen specs for this
2008 Mar 05
7
mocking successive return values
I''m having a problems mocking successive return values. I don''t know if I''m doing something wrong or if this is a limitation of rspec mocks. Any ideas of what I may be doing wrong? I''m trying to test the generate_quote_number method. It generates a quote number, looks to see if it is in the db already. If it is, it calls itself to try again. I want
2008 Mar 06
0
Including my plugin specs into rake spec
...n order to do this, I edited the rspec_on_rails /tasks/rspec.rake file to include our specs in the FileList. I don''t especially like the fact that I had to change the rake task for rspec_on_rails in order to do this. Is there a more preferred way to do this? Thanks, -Corey -- http://www.coreyhaines.com The Internet''s Premiere source of information about Corey Haines -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080306/1605ca00/attachment.html
2008 Jan 30
2
(no subject)
Message-ID:<ef1d468f0801291747q3f605e6cjb73028a888a441ee at mail.gmail.com> On: Tue, 29 Jan 2008 20:47:41 -0500, "Andrew WC Brown" <omen.king at gmail.com> wrote: > I''ve seen lambda before but not sure what it does. A lambda is a fancy name for an anonymous or unbound function. Its significance comes from the fact that it is completely stateless, producing no
2008 Jan 13
1
View spec''ing style
I''ve been getting my head around view spec''ing lately for a fairly complex project that makes heavy use of partials in views and I have hit up against a style puzzle. I see two strategies for spec''ing views: First: Develop detailed specs for each partial and then make sure that the final view expects that the appropriate partials are included and used. Pros: