[rspec-users] Mock_model not recognizing act_as_mappable

2012-08-03 Thread Steve Loo
.. are not available in the mock_model as they are in the actual model. Thanks for the help Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] require confusion

2011-01-18 Thread Steve H.
I'm on Ubuntu 10.10, and I'm trying to figure out what I'm missing in regards to the require statement for RSpec's expectation library. Any code I see on the web requires rspec like: require 'spec/expectations' but to get it to work I always have to change it to require 'rspec/expectations'

Re: [rspec-users] Error Testing a view in RSpec 2

2011-01-05 Thread Steve Hull
used to put together pieces of html. -Steve -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] How do I include routing path helpers?

2010-11-14 Thread Steve
The issue is actually before getting to anything Capybara related. It's coming from my call to member_path @member in my spec to determine the route path to use. Looking at it this way the error makes more sense. Not sure how much fudging I would need to do to simulate there being a request there

Re: [rspec-users] How do I include routing path helpers?

2010-11-13 Thread Steve
= { :host = test.host, :protocol = 'https' } end in your config\environments\test.rb On Sat, Nov 13, 2010 at 4:01 AM, Steve vertebr...@gmail.com wrote: Thanks, that did it. I still have a nil error when trying to call host_with_port on the request object inside url_for, but I think

Re: [rspec-users] How do I include routing path helpers?

2010-11-13 Thread Steve
We are indeed. There is no request var available in Capybara. I think that is supposed to be taken care of by Capybara.default_host which I have set, but still no dice. I see exciting times ahead trying to get this working. On Nov 13, 2:31 pm, Evgeniy Dolzhenko dolze...@gmail.com wrote: We're

[rspec-users] How do I include routing path helpers?

2010-11-12 Thread Steve
, Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] How do I include routing path helpers?

2010-11-12 Thread Steve
with capybara. So now I'm off to figure that out. Thanks, Steve On Nov 12, 2:56 pm, Evgeniy Dolzhenko dolze...@gmail.com wrote: Not sure on how to do that with Steak but you must be looking to include Rails.application.routes.url_helpers somewhere, with vanilla RSpec it would be describes 'included

Re: [rspec-users] How do I include routing path helpers?

2010-11-12 Thread Steve
Thanks, that did it. I still have a nil error when trying to call host_with_port on the request object inside url_for, but I think that is related to my app having subdomains, and trying to use those with capybara. On Nov 12, 2:56 pm, Evgeniy Dolzhenko dolze...@gmail.com wrote: Not sure on how

Re: [rspec-users] How are people speccing and cuke-ing Paperclip (with S3)?

2010-07-17 Thread Steve Klabnik
One of the things that you learn after testing for a while is what to test. You don't need to test Paperclip's ability to put files to S3; that's what Paperclip's internal tests are for. So what I do is this: http://gist.github.com/479647 When I'm developing locally or testing, I just write

Re: [rspec-users] Future of RSpec Integration Testing

2010-04-30 Thread Steve Klabnik
Integration testing is also known as full-stack testing. Basically, you're not testing isolated parts of the system, but the system as a whole. Cucumber is integration testing. rspec with 'integrate_views' is integration testing. ___ rspec-users mailing

[rspec-users] controller_name in rspec-rails2?

2010-04-27 Thread Steve
I have some specs that use controller_name because of namespaced temporary controllers in my specs. In rspec-rails2 I'm told that controller_name is not a valid method. Is there a workaround for this? Thanks, Steve ___ rspec-users mailing list rspec

[rspec-users] controller_name in rspec-rails2?

2010-04-24 Thread Steve V
is the current way to do this with rspec v2? Thanks, Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Spec-ing delayed_jobs in the future

2010-04-22 Thread Steve Klabnik
it. Thanks, Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Can I use mocking in this way?

2010-04-05 Thread steve ross
On Apr 5, 2010, at 8:09 AM, Pat Maddox wrote: Sounds like a lot of work On Apr 3, 2010, at 9:08 PM, Julian Leviston wrote: Sorry I meant send AND __send__ Julian. On 04/04/2010, at 11:45 AM, Julian Leviston wrote: On 04/04/2010, at 7:32 AM, David Chelimsky wrote: On Sat,

Re: [rspec-users] Spork

2010-03-29 Thread steve ross
On Mar 29, 2010, at 1:04 PM, David Chelimsky wrote: On Mar 29, 2010, at 2:48 PM, Ashley Moran wrote: (2.5) Any reason why the new RSpec module is Rspec not RSpec? /grammarnazi AFAIK, autoloaders (like in Rails and Autotest), assume a CamelCase convention for class names, which RSpec

Re: [rspec-users] Best practices to managing RSpec code for verylar ge projects?

2010-02-04 Thread Steve Schafer
entropy results in a net increase in global entropy. So if you're interested in prolonging the life of the universe, the best thing to do is sit quietly in a corner and do nothing. -Steve ___ rspec-users mailing list rspec-users@rubyforge.org http

Re: [rspec-users] testing controllers using cucumber

2010-02-01 Thread steve ross
On Feb 1, 2010, at 1:30 AM, Amit Kulkarni wrote: Oh ok. From your code it seems that we are checking the whole app as you mentioned. I have tested controllers using rspec. So i am not getting which is better to use. Since with Rspec we test the objects and here using cucumber(good for

Re: [rspec-users] What is difference between TDD BDD

2010-01-31 Thread steve ross
On Jan 31, 2010, at 9:13 AM, Ravi Shankar wrote: What is the difference between test driven development behavior driven development, which one is better. what are the options available in BDD. Make up a simple project like a blog that you can do in couple of hours. Try it using one,

Re: [rspec-users] ThreadError on click_button

2009-11-03 Thread Steve Scruggs
Steve Scruggs wrote: I get the following error ThreadError in 'Managing InvoicePayments viewing index lists all InvoicePayments' stopping only thread note: use sleep to stop forever (eval):2:in `click_button' when running rake spec using rspec and rspec-rails 1.2.9 and webrat 0.5.3

[rspec-users] ThreadError on click_button

2009-10-30 Thread Steve Scruggs
I get the following error ThreadError in 'Managing InvoicePayments viewing index lists all InvoicePayments' stopping only thread note: use sleep to stop forever (eval):2:in `click_button' when running rake spec using rspec and rspec-rails 1.2.9 and webrat 0.5.3. I have tried webrat 0.6.rc1

Re: [rspec-users] Problem Comparing Floats

2009-08-24 Thread Steve Schafer
a technique that you claim fixes an inexactness problem with floating-point math. I bet you US$100 that I can supply a trivial example that breaks your fix. -Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman

Re: [rspec-users] top posting and plain text

2009-05-06 Thread Steve Schafer
respond with inline comments. And use plain text email - not html.br brThanks,brAslakbr --001636c5b0eedf7860046942ecfc-- --===0527642389== -Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec

[rspec-users] jruby require 'jcode' problem and cucumber 1.2.0

2009-04-25 Thread Steve Molitor
After upgrading to cucumber 0.3.0 from 0.1.16 I'm getting this error when I try to run a feature: /Users/steve/src/jruby-1.2.0/lib/ruby/1.8/jcode.rb:66:in `end_regexp': too short multibyte code string: /[\xc0-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf][\x80-\xbf]$/ (RegexpError) from /Users/steve/src

Re: [rspec-users] Depot app, Demeter's law and troubles cleanly spe cing

2009-04-21 Thread Steve Schafer
by doing this? (b) Is is safe to make those assumptions? If you can reasonably answer yes to the second question, then you're in good shape. But you still have to accept that future changes to the design can lead to structural changes that retroactively invalidate your answer. -Steve

Re: [rspec-users] Spec run heuristics (Re: Cucover: coverage-aware 'lazy' cucumber runs)

2009-04-12 Thread Steve Molitor
Stephen, Regarding the exception nagger, would a simple script that grepped the log file for exceptions and produced a list of failing lines in your code be a start? Steve On Sat, Apr 11, 2009 at 11:47 PM, Stephen Eley sfe...@gmail.com wrote: On Sat, Apr 11, 2009 at 2:02 PM, Ashley Moran

[rspec-users] Webrat - Fill in text field by id

2009-03-06 Thread Steve Molitor
element would be easier, especially when a page has multiple forms with the same labels and input names. Thanks, Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Webrat - Fill in text field by id

2009-03-06 Thread Steve Molitor
Well I'm reading the 0.4.2 webrat rdoc for fill_in, at it says: field can be either the value of a name attribute (i.e. user[email]) or the text inside a labelelement that points at the input field. Does it also try the id? Steve On Fri, Mar 6, 2009 at 11:03 AM, James Byrne li...@ruby-forum.com

Re: [rspec-users] Sinitra and Cucumber

2009-02-27 Thread Steve Tooky
Aslak Hellesøy wrote: Rob Holland updated the wiki yesterday: http://wiki.github.com/aslakhellesoy/cucumber/sinatra (He reports that the $0 trick described in the blog doesn't work with the latest Sinatra). Rob also has an example in his fork, which I have yet to merge into my repo:

Re: [rspec-users] Sinitra and Cucumber

2009-02-26 Thread Steve Tooky
http://tooky.github.com/2009/02/05/getting-started-with-cucumber-and-sinatra.html Andrew Premdas wrote: Anyone using cucumber with sinitra (current). Wondering if I need to use Aslaks sinatra/webrat forks. Also if anyone has a sample app :) -- Posted via http://www.ruby-forum.com/.

Re: [rspec-users] Constraints / Global requirements

2009-01-08 Thread Steve Molitor
On Wed, Jan 7, 2009 at 9:00 PM, Pat Maddox perg...@gmail.com wrote: On Wed, Jan 7, 2009 at 6:22 PM, Stephen Eley sfe...@gmail.com wrote: On Wed, Jan 7, 2009 at 7:00 PM, Steve Molitor stevemoli...@gmail.com wrote: Lots of features use the word should in their then clauses. Take this example

Re: [rspec-users] Constraints / Global requirements

2009-01-08 Thread Steve Molitor
I guess that would work. But a method would probably work too, if I'm understanding correctly (often a bad assumption!). I.e. /(.*) should be a valid date/ would call valid_date?(date), or something. Anyway, yes that sounds promising. Steve On Wed, Jan 7, 2009 at 8:09 PM, Pat Maddox perg

Re: [rspec-users] Constraints / Global requirements

2009-01-08 Thread Steve Molitor
that would be too much noise and you want a reference. Steve Steve I don't think you need all 3 steps. OK. Then is awkward On Wed, Jan 7, 2009 at 9:00 PM, Pat Maddox perg...@gmail.com wrote: On Wed, Jan 7, 2009 at 6:22 PM, Stephen Eley sfe...@gmail.com wrote: On Wed, Jan 7, 2009 at 7:00 PM, Steve

Re: [rspec-users] Constraints / Global requirements

2009-01-08 Thread Steve Molitor
?(:validate).with(the_date).return(true) You're completely mocking out the date validation result, but you're testing that the date validation routine was indeed called, and if you've tested that routine elsewhere you should be good. Or something like that. Good ideas, thanks. Steve On Thu, Jan 8

Re: [rspec-users] Constraints / Global requirements

2009-01-08 Thread Steve Molitor
in those spots where you want them to. How does that sound? Steve On Thu, Jan 8, 2009 at 12:52 PM, Zach Dennis zach.den...@gmail.com wrote: On Thu, Jan 8, 2009 at 11:32 AM, Steve Molitor stevemoli...@gmail.com wrote: I guess that would work. What would work? You top-posted, any way you can

Re: [rspec-users] Constraints / Global requirements

2009-01-07 Thread Steve Molitor
it might be nice. Anyway you've showed me a very workable approach. Thanks! Steve P.S. Date validation really isn't that important in my application; that's just an example. A real example would be the sales tax calculation in the leasing app I worked on. That was very important

Re: [rspec-users] Constraints / Global requirements

2009-01-07 Thread Steve Molitor
to see a regurgitation of all the previously explained features that applied. A reference or reminder note was just fine. But anyway, yes focus on clarity and flow for the reader. Sometimes that will mean getting a little DRYer, in other cases it would me getting a little moister. Thanks! Steve

Re: [rspec-users] Constraints / Global requirements

2009-01-07 Thread Steve Molitor
a spec example. Steve On Wed, Jan 7, 2009 at 4:22 PM, Stephen Eley sfe...@gmail.com wrote: On Wed, Jan 7, 2009 at 12:23 PM, Steve Molitor stevemoli...@gmail.com wrote: By a global requirement I'm talking about requirements like 'all emails must be formatted like this...' Some people call

Re: [rspec-users] Constraints / Global requirements

2009-01-07 Thread Steve Molitor
programmatically ran the date feature file inside the Given /(.*) date is vaild/ step. But all those results would clutter up the report output. I like your approach best: simple and doesn't require a funky technical solution. Steve On Wed, Jan 7, 2009 at 7:26 PM, Pat Maddox perg...@gmail.com wrote: From

Re: [rspec-users] newbie cucumber tutorial

2008-12-22 Thread Steve Molitor
+1 @ Pat I was going to respond in more detail, but I do exactly what Pat does -- bang in steps, no bang in Rails apps. The Rails scaffolding boiler plate generates no bangs. Steve On Mon, Dec 22, 2008 at 2:30 PM, Pat Maddox perg...@gmail.com wrote: On Mon, Dec 22, 2008 at 11:29 AM, Caius

Re: [rspec-users] [Cucumber] a few clarifications please...

2008-12-17 Thread Steve Molitor
What about two steps with the same regex but are of different types -- i.e. a Given and a Then with the same regexp? Steve On Wed, Dec 17, 2008 at 6:07 PM, aslak hellesoy aslak.helle...@gmail.comwrote: On Wed, Dec 17, 2008 at 11:50 PM, Tim Walker walke...@gmail.com wrote: Great information

Re: [rspec-users] Reuse of Cucumber Features

2008-12-14 Thread Steve Molitor
the solution but I'm stuck on how to word it and put it together in my case. Steve On Sun, Dec 14, 2008 at 8:41 AM, Matt Wynne m...@mattwynne.net wrote: On 13 Dec 2008, at 20:58, Steve Molitor wrote: What's the best way to handle a requirement that shows up as a sub-requirement requirement in other

[rspec-users] Reuse of Cucumber Features

2008-12-13 Thread Steve Molitor
copying and pasting from other features. Does my question make sense? Any suggestions? Thanks. Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] cucumber features HTML output bug with more than 100 steps

2008-12-12 Thread Steve Molitor
are displayed. When running with 'format --pretty' everything works fine and all steps are colored green. This is happening with jruby 1.1.4 on OS X and RedHat Linux. Any ideas? Could this be a bug? Steve ___ rspec-users mailing list rspec-users

[rspec-users] Vim tree plugin?

2008-10-26 Thread Steve
Does anyone know if there's a vim plugin out there that will show a tree of your describe/it blocks at a glance. Preferably with click ability to go right to that location? Thanks, Steve ___ rspec-users mailing list rspec-users@rubyforge.org http

[rspec-users] hash_excluding/hash_only?

2008-08-06 Thread Steve
I know there is a hash_including, which is quite useful. Are there by chance any matchers for ensuring a hash includes only the specified values, or that it doesn't have certain values? Thanks, Steve ___ rspec-users mailing list rspec-users

Re: [rspec-users] Someone please name this matcher for me

2008-08-06 Thread Steve Schafer
with possibly multiple occurrences of its members is known in mathematics as a multiset, or, informally, a bag. -Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] hash_excluding/hash_only?

2008-08-06 Thread Steve
Mark Wilden wrote: On Wed, Aug 6, 2008 at 9:22 AM, Steve [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I know there is a hash_including, which is quite useful. Are there by chance any matchers for ensuring a hash includes only the specified values, or that it doesn't have

Re: [rspec-users] Rails controller specs and private helper methods

2008-08-05 Thread Steve Eley
as a model, I'd consider wrapping it inside a model class and spec'ing it out as a model. -- Have Fun, Steve Eley Deep Salt Team ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Rspec doesn't pickup the status code correctly.

2008-08-03 Thread Steve
|format| format.json { render :json = {:errors = errors, :url = url }, :status = 409} end end end I don't know if it's the cause, but your unless statement is an assignment, and not an equality comparison: unless (errors = account.errors['login']) Steve

[rspec-users] Rails views have_tag with html inside

2008-08-01 Thread Steve
is based on HTMLSelector, so it's not specifically RSpec, but does anyone know how to work around this? Thanks, Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Clear a stub

2008-07-31 Thread Steve
Scott Taylor wrote: Of course there is a way - the question is, do you really want to use it? After seeing that, no, not really. I agree with you on it likely messing with clarity. I opted to rework my specs. It wasn't my preferred option, but there really wasn't a better way. Thanks to

Re: [rspec-users] Clear a stub

2008-07-28 Thread Steve
Pat Maddox wrote: etc. It's super weird that it works in every other place but not here. So I'd start from the tiniest thing possible and add lines until you find one that breaks it. Pat So I went through and took the whole thing apart. It turns out that it is/was a stub issue(just not

[rspec-users] Clear a stub

2008-07-27 Thread Steve
stub value, but instead it seems to turn the stub into an array making the previous value the first element, and then the new value the second. Thanks, Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo

Re: [rspec-users] Clear a stub

2008-07-27 Thread Steve
Pat Maddox wrote: ...big snip... Well, a lot of stuff has happened since then :) However, I'm not sure what your problem is still so I can't tell you that it's been fixed since then. It sounds to me like you're saying reservations(:single) returns a Reservation object in one test, but [] in

Re: [rspec-users] Failing on rake but not on textmate (rails)

2008-07-22 Thread Steve Eley
a permanent change in memory. I can't know if that's your problem, of course, but it's something to think about. -- Have Fun, Steve Eley Deep Salt Team ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec

Re: [rspec-users] Does RSpec work nicely with UUID primary keys?

2008-07-05 Thread Steve Eley
of code each time. I don't consider that much of a burden. -- Have Fun, Steve Eley Deep Salt Team ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Attempting to Make Sense of RSpec use

2008-07-05 Thread Steve Eley
___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Have Fun, Steve Eley Deep Salt Team ___ rspec-users mailing list rspec-users@rubyforge.org http

Re: [rspec-users] auto-generated descriptions

2008-07-04 Thread Steve Eley
it in their config.* block if they want to use it? -- Have Fun, Steve Eley ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Looking for help on two issues with Rails 2.1 and RSpec 1.14

2008-06-02 Thread Steve Downey
I have specs that ran fine in Rails 2.02/RSpec 1.13 that are failing on Rails 2.1/RSpec 1.14. There is one problem and one issue: problem: sometimes (but not always) I get a NoMethodError referencing a has_many association issue: in helper specs, instance variables don't get set unless the

Re: [rspec-users] rake spec:rcov failing

2008-05-13 Thread Steve Downey
on this project a while back and I did upgrade my REXML version at some point. On Tue, May 13, 2008 at 4:02 PM, Alf Mikula [EMAIL PROTECTED] wrote: Steve, Did you have any luck with this? I ran into this problem today, with Rcov 0.8.1.2.0, RSpec 1.1.3, and REXML 3.1.7.3. rspec-users@rubyforge.org

Re: [rspec-users] Problems running RSpec from w/in TextMate

2008-05-12 Thread Steve Downey
On Sat, May 10, 2008 at 11:03 AM, Wayne Molina [EMAIL PROTECTED] wrote: Okay the issue seems to have been that it wasn't set to RSpec but Ruby on Rails. Changing it to RSpec seems to fix it... silly me, I guess :) Same problem (and solution) for me, but ... when I'm in a spec file and

[rspec-users] Fixtures not clearing tables?

2008-05-08 Thread Steve Downey
I have a case where I'm loading fixtures and a row added to a table in a spec is around at the start of all subsequent specs. When I set config.use_transactional_fixtures = false the fixtures load/clear as expected. Any ideas? ___ rspec-users mailing

Re: [rspec-users] Hiding the passes

2008-05-07 Thread Steve Downey
I assume you are running with '-f s' switch? Maybe its in your spec.opts file ... maybe as --format progress? If you change that to '-f p' you only see progress as a single '.' for each passing test with errors at the end of the output. Or maybe I'm not understanding the question. On Wed, May

Re: [rspec-users] Date comparisons

2008-05-03 Thread Steve Downey
I've seen that one too. Maybe has to do with how equality is defined in the Time or DateTime class. I get around it by comparing the string-ified versions: foo.time.to_s.should == expected_time.to_s On Sat, May 3, 2008 at 9:17 AM, Joe Van Dyk [EMAIL PROTECTED] wrote: I occasionally get

Re: [rspec-users] Any news on the rSpec books?

2008-05-03 Thread Steve Downey
I sent an inquiry to Prag Bookshelf but didn't hear anything -- saw something online that led me to believe they were the publisher. PeepCode has several RSpec screencasts. On Sat, May 3, 2008 at 10:06 AM, Michael Schuerig [EMAIL PROTECTED] wrote: I admit it, when it comes to rSpec, I'm lazy.

Re: [rspec-users] Date comparisons

2008-05-03 Thread Steve Downey
Just because too objects have the same to_s representation don't mean they are equal: The important equality in this case is what matters to the tester. This is a similar issue to Floats where there's more precision than the exernal representation shows. Is there more precision than

[rspec-users] rake spec:rcov failing

2008-04-30 Thread Steve Downey
Trying to run the 'spec:rcov' task and failing with error below. I saw a post from last year with a different REXML error but it was a FixNum issue. Any help appreciated. S OS X Ruby 1.8.6 Rails 2.02 RSpec-1.1.3 (build 20080131122909) REXML 3.1.6 = 876 examples, 0 failures, 87 pending

[rspec-users] Fixture Scenarios plugin

2008-04-29 Thread Steve
Just curious if anything special needs to be done to use the Rails fixture scenarios plugin(http://code.google.com/p/fixture-scenarios/) with rspec? Would I just create the scenarios inside the spec/fixtures dir, as opposed to the test/fixtures dir? Thanks, Steve

Re: [rspec-users] Netbeans and .story files

2008-03-31 Thread Steve Rogers
On Mar 31, 2008, at 7:03 AM, Ashley Moran wrote: Hi Is anyone here using NetBeans and story runner? NB doesn't recognise .story files so I can't even do simple things like block commenting lines (and the regex replace is temperamental). I tried adding .story to the list of Ruby

[rspec-users] Adding before / after blocks to every spec

2008-03-14 Thread Steve Tooke
, and just add: before(:each) { begin_transaction } after(:each) { rollback_transaction } within the describe block it works perfectly. Does anybody know what might be causing this, or a way around it? Thanks for your help. Steve ___ rspec-users mailing

Re: [rspec-users] ridding away with do_request

2008-03-08 Thread Steve
On Sat, 08 Mar 2008 15:51:01 -0500, Zach Dennis wrote: 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. snip IMO is adds a

Re: [rspec-users] Run all tests after success

2008-02-16 Thread Steve
On Sat, 16 Feb 2008 10:23:53 -0500, David Chelimsky wrote: On Feb 15, 2008 6:06 PM, Steve [EMAIL PROTECTED] wrote: I seem to remember when I was running a previous version of rspec and autotest that when a set of specs passed for some changed files, that all of the specs would then be run

Re: [rspec-users] can't get (r)spec to work in non-rails project

2008-02-16 Thread Steve
to know what crazy way someone might layout their projects. Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Helpers in view specs

2008-02-16 Thread Steve
in the view spec, so that that output could be expected. My helper functions all have their own specs, so it would seem that I'm not doing anything magical, just making the specs a little simpler. Steve ___ rspec-users mailing list rspec-users@rubyforge.org

[rspec-users] Run all tests after success

2008-02-15 Thread Steve
this, or is something wrong? Thanks, Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Failed specs spike autotest

2008-02-15 Thread Steve
On Fri, 15 Feb 2008 01:07:27 -0500, David Chelimsky wrote: The source of the bug was a patch that we applied a while back. This was after the 1.1.3 release, so if you're using 1.1.3 you're fine. If you're using trunk, go ahead and update and you should be fine now. Thanks, I appreciate it.

[rspec-users] Failed specs spike autotest

2008-02-14 Thread Steve
information I can provide. Thanks, Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Failed specs spike autotest

2008-02-14 Thread Steve
why it then tries to run all of the specs again. Finished in 15.703733 seconds 398 examples, 1 failure, 1 pending /usr/bin/ruby1.8 -S script/spec -O spec/spec.opts /usr/bin/ruby1.8 -S script/spec -O spec/spec.opts spec/views/users/ index.html.haml_spec.rb etc... Thanks, Steve

[rspec-users] Wrong ZenTest being used?

2008-02-14 Thread Steve
a previously working much earlier rev of rspec/rails, and zentest. I'm guessing something old is lingering around. Where would I be best off looking? Thanks, Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo

Re: [rspec-users] Wrong ZenTest being used?

2008-02-14 Thread Steve
On Thu, 14 Feb 2008 17:53:42 +, Steve wrote: When I try to run autotest I get the following error: loading autotest/rails_rspec /usr/local/lib/site_ruby/1.8/rubygems.rb:319:in `activate': can't activate ZenTest (= 3.7.1), already activated ZenTest-3.9.1] (Gem::Exception

Re: [rspec-users] Spec::Runner.register_at_exit_hook in RSpec 1.1.3

2008-02-05 Thread Steve Hayes
David Chelimsky wrote: On Feb 4, 2008 11:15 PM, Steve Hayes [EMAIL PROTECTED] wrote: In RSpec 1.1.3 this method is invoked from Spec::Example::ExampleGroupMethods.inherited, but it no longer exists. It most certainly does. In fact, it's new in 1.1.3, so neither the method nor the call

[rspec-users] Spec::Runner.register_at_exit_hook in RSpec 1.1.3

2008-02-04 Thread Steve Hayes
version of RSpec gets me going, but seems a bit of a hack. Is there something else I should be doing, or is this a bug? Steve Hayes -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman

[rspec-users] Should receive field_for failing

2007-11-14 Thread Steve
was 'fields_for address, address'. Is there a way to check for this through the primary view, or should I just spec the partial individually? Thanks, Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo

[rspec-users] Keeping Up with Trunk

2007-11-06 Thread Steve Ross
I have a project with rspec installed as a plugin using svn:externals. Here are my externals: rspec_on_railssvn://rubyforge.org/var/svn/rspec/trunk/ rspec_on_rails rspec svn://rubyforge.org/var/svn/rspec/trunk/ rspec I just did an svn up on both and

[rspec-users] Test that controller includes helpers?

2007-11-02 Thread Steve
Is there an easy way to spec that a controller should include helpers other than its own? I was thinking I could just spec responds_to for methods I'm interested in in the view, but that seems like crossing a separation boundary, that the controller maybe doesn't need to know about? Thanks, Steve

[rspec-users] Spec custom finders

2007-10-26 Thread Steve
I have some finders in my models where I write some of the sql myself. I of course want to test these, but am not sure the best way. Should I just let them roll through to the db, and verify they return the correct objects based on the fixtures I load, or should I spec the actual query? I know

Re: [rspec-users] rspec_autotest failing

2007-10-26 Thread Steve
On Fri, 26 Oct 2007 13:38:09 -0400, Scott Taylor wrote: That's quite outdated. RSpec now comes with it's own autotest plugin (which should use it by default, if you have the rspec gem installed). Scott I'm running from trunk, and don't have the gem installed. How is autotesting enabled?

Re: [rspec-users] rspec_autotest failing

2007-10-26 Thread Steve
On Fri, 26 Oct 2007 18:51:17 +, Steve wrote: On Fri, 26 Oct 2007 13:38:09 -0400, Scott Taylor wrote: That's quite outdated. RSpec now comes with it's own autotest plugin (which should use it by default, if you have the rspec gem installed). Scott I'm running from trunk

Re: [rspec-users] rspec_autotest failing

2007-10-26 Thread Steve
On Fri, 26 Oct 2007 15:01:30 -0400, Josh Knowles wrote: On 10/26/07, Steve [EMAIL PROTECTED] wrote: I'm running from trunk, and don't have the gem installed. How is autotesting enabled? Is it a special switch passed to 'spec' or 'spec_server'? gem install ZenTest cd RAILS_ROOT autotest

Re: [rspec-users] WARNING after each spec

2007-10-25 Thread Steve
On Thu, 25 Oct 2007 05:30:38 +, Steve wrote: I just updated to r2784, and now all of my specs output the '.' and then 'WARNING: there is already a transaction in progress', either once or twice before the next dot. It's indicating that all specs are passing, there's just a whole ton

Re: [rspec-users] WARNING after each spec

2007-10-25 Thread Steve
On Thu, 25 Oct 2007 17:38:07 -0500, David Chelimsky wrote: Actually, if you get the latest trunk this should be fixed. Let me know. Thanks, David Yep, looks good now. Thanks. ___ rspec-users mailing list rspec-users@rubyforge.org

[rspec-users] spec_server doesn't update 'required' files

2007-10-25 Thread Steve
when a spec is run? Thanks, Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] spec_server doesn't update 'required' files

2007-10-25 Thread Steve
On Thu, 25 Oct 2007 20:09:23 -0500, David Chelimsky wrote: On 10/25/07, Steve [EMAIL PROTECTED] wrote: 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

[rspec-users] Setting session values

2007-10-24 Thread Steve
creating a new session, but nothing seems to do it. I'm sure there's something I'm missing. Suggestions? Thanks, Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Specs with -X fail

2007-10-24 Thread Steve
I have some specs that run just fine using rake spec:controllers or script/spec spec/controllers but if I run script/spec spec/controllers -X with the spec server running, I end up getting some mocks that fail saying expected once, and being called twice. Any ideas what would cause this kind of

Re: [rspec-users] Specs with -X fail

2007-10-24 Thread Steve
On Wed, 24 Oct 2007 21:36:15 -0400, Scott Taylor wrote: Did you try restarting the drb server? Scott Yes. Multiple times. Exact same results each time. ___ rspec-users mailing list rspec-users@rubyforge.org

Re: [rspec-users] Setting session values

2007-10-24 Thread Steve
On Wed, 24 Oct 2007 21:29:39 -0400, Jonathan Linowes wrote: i've done this in controller specs session[:whatever] = something do_it Yeah, I did that, and it was turning up nil when I actually made the request. ___ rspec-users mailing list

Re: [rspec-users] Testing layouts with RSpec on Rails

2007-10-23 Thread Steve
On Tue, 23 Oct 2007 17:58:45 -0500, David Chelimsky wrote: I don't know if there are any repercussions, but just adding :text to the array in rspec_on_rails/lib/spec/rails/dsl/behaviour/view_example.rb:subject_of_render was enough to make it work. That's cool, but that's not how we do

Re: [rspec-users] Testing layouts with RSpec on Rails

2007-10-22 Thread Steve
* (in theory, I haven't done this yet) do something like this: It would feel even less hackish if render supported :text like rails render does. So you could do this: render :text = 'divyielded/div', :layout = 'application' response.should have_tag('div', 'yielded') Steve

  1   2   >