[rspec-users] Mock_model not recognizing act_as_mappable

2012-08-03 Thread Steve Loo
of my act_as.. 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' More

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

2011-01-05 Thread Steve Hull
ically 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 f

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 wrote: > We're into some horrible t

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

2010-11-13 Thread Steve
fault_url_options = { :host => "test.host", :protocol => 'https' } > end > > in your config\environments\test.rb > > > > On Sat, Nov 13, 2010 at 4:01 AM, Steve wrote: > > Thanks, that did it. I still have a nil error when trying to call > > host

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 wrote: > Not sure on how to do that with Ste

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

2010-11-12 Thread Steve
ith capybara. So now I'm off to figure that out. Thanks, Steve On Nov 12, 2:56 pm, Evgeniy Dolzhenko 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 > > describe

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

2010-11-12 Thread Steve
hat I need to do? Thanks, Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

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 fil

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 maili

[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-users] controller_name in rspec-rails2?

2010-04-24 Thread Steve V
;t work. What 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
d appreciate 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 Chelim

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"? >> > > AFAIK, autoloaders (like in Rails and Autotest), assume a CamelCase > convention for class names, which RSpec vio

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

2010-02-04 Thread Steve Schafer
te: Any attempt to reduce local 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

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

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 us

[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 wit

Re: [rspec-users] Problem Comparing Floats

2009-08-24 Thread Steve Schafer
g bet, which I will reiterate now: Show me 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 rsp

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

2009-05-06 Thread Steve Schafer
quot;;>http://en.wik= >ipedia.org/wiki/Posting_style).If you have a [Cucumber] topic, plea= >se respond with inline comments. And use plain text email - not html. >Thanks,Aslak > >--001636c5b0eedf7860046942ecfc-- >--===0527642389== -Steve ___

[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

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

2009-04-21 Thread Steve Schafer
elf: (a) What implicit assumptions am I making 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 change

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 wrote: > On Sat, Apr 11, 2009 at 2:02 PM, Ashley Moran > wrote: >

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 element that points at the field." Does it also try the id? Steve On Fri, Mar 6, 2009 at 11:03 AM, James Byrne wrote:

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

2009-03-06 Thread Steve Molitor
the input 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] 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
gt;> people use your validation code in those spots where you want them to. >> How does that sound? Steve On Thu, Jan 8, 2009 at 12:52 PM, Zach Dennis wrote: > On Thu, Jan 8, 2009 at 11:32 AM, Steve Molitor > wrote: > > I guess that would work. > > What would work?

Re: [rspec-users] Constraints / Global requirements

2009-01-08 Thread Steve Molitor
ceive?(: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.

Re: [rspec-users] Constraints / Global requirements

2009-01-08 Thread Steve Molitor
nse, other times where 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 wrote: > On Wed, Jan 7, 2009 at 6:22 PM, Stephen Eley wrote: > > On Wed, Jan 7

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, Pa

Re: [rspec-users] Constraints / Global requirements

2009-01-08 Thread Steve Molitor
On Wed, Jan 7, 2009 at 9:00 PM, Pat Maddox wrote: > On Wed, Jan 7, 2009 at 6:22 PM, Stephen Eley wrote: > > On Wed, Jan 7, 2009 at 7:00 PM, Steve Molitor > wrote: > >> Lots of features use the word "should" in their then clauses. > >> Take this exampl

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 wrote: > > Fro

Re: [rspec-users] Constraints / Global requirements

2009-01-07 Thread Steve Molitor
eature is clearer to the customer than a spec example. Steve On Wed, Jan 7, 2009 at 4:22 PM, Stephen Eley wrote: > On Wed, Jan 7, 2009 at 12:23 PM, Steve Molitor > wrote: > > By a global requirement I'm talking about requirements like 'all emails > must > >

Re: [rspec-users] Constraints / Global requirements

2009-01-07 Thread Steve Molitor
;t care 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!

Re: [rspec-users] Constraints / Global requirements

2009-01-07 Thread Steve Molitor
y that was easy to read 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

[rspec-users] Constraints / Global requirements

2009-01-07 Thread Steve Molitor
lly the testers, preferred: a + b + (a + b * 0.5) In real life the sales (and use) tax calculation was quite complex and changed. When it changed this broke many manual test plan and invalidated many use cases. If we were using cucumber with the second approach it would br

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 wrote: > On Mon, Dec 22, 2008 at 11:29 AM, Caius Durling wr

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 wrote: > > > On Wed, Dec 17, 2008 at 11:50 PM, Tim Walker wrote: > >> Great information guys, making som

Re: [rspec-users] Reuse of Cucumber Features

2008-12-14 Thread Steve Molitor
dashes - Am I making sense? I want to specify the date in the features, as there may be extra requirements like birth dates can not be in the future in addition to the generic date requirements. And I want to validate that the form checks for valid dates, displays the appropriate error mes

[rspec-users] Reuse of Cucumber Features

2008-12-13 Thread Steve Molitor
o that in an example driven way, without 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
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@rubyforge.org http://rubyfo

[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

Re: [rspec-users] Not seeing an RJS change

2008-09-29 Thread Steve Schafer
x27;t make much sense. How about this: "Offhand, I'm not sure why that is true (still waking up this fine Monday morning), but I'd recommend throwing this question to the rails mailing list if nobody responds here." -Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Confused about square bracket usage.

2008-08-10 Thread Steve Eley
u wouldn't say [EMAIL PROTECTED] No, you usually wouldn't (though you could). But if you had a @page variable that represented just one Page, it would be quite sensible and common to say @pages == [EMAIL PROTECTED] That's really all that mock_page i

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

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

2008-08-06 Thread Steve Schafer
4, 2] An unordered collection 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

[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-

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

2008-08-05 Thread Steve Eley
a generic resource 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
url = ['http:','', request.host].join('/') respond_to do |format| format.json { render :json => {:errors => errors, :url => url }, :status => 409} end end end I don't know if it's the cause, but yo

[rspec-users] Rails views have_tag with html inside

2008-08-01 Thread Steve
d ''. I know that have_tag 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 both

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 qui

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 th

Re: [rspec-users] Clear a stub

2008-07-27 Thread Steve
Pat Maddox wrote: Can you paste your code please? Here's an example I just whipped up that seems to work fine...I'm using a stub defined inline, a stub defined in two steps, and a partially stubbed object. They all shadow the outer stub. What does your code look like? Pat It looks like I w

[rspec-users] Clear a stub

2008-07-27 Thread Steve
just overwrite the previous 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://r

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

2008-07-22 Thread Steve Eley
ication code in a spec, and make sure that nothing you do in a spec leaves 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 ___ rs

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

2008-07-05 Thread Steve Eley
Because >> you'll come back to this code in 6-12 months and be totally stuck >> trying to figure out what is where. >> >> I recently wrote a viewpoint on this that might help you: >> >> http://www.lindsaar.net/2008/6/24/tip-24-being-clever-in-specs-is-for-dummies >> >> Hope you do well with Rspec, feel free to ask more questions! >> >> -- >> http://lindsaar.net/ >> Rails, RSpec, Puppet and Life blog >> ___ >> rspec-users mailing list >> rspec-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users > > > ___ > 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://rubyforge.org/mailman/listinfo/rspec-users

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

2008-07-05 Thread Steve Eley
rtually nothing in, so that only means changing one or two lines 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] auto-generated descriptions

2008-07-04 Thread Steve Eley
ple to include 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] View spec issue

2008-07-02 Thread Steve Rogers
I've been having some view spec issues, and I think I finally traced it to ground - it seems like setting a value in assigns like: assigns[:foo] = "baz" doesn't get used to build the path prefix for a route like: map.resources :widgets , :path_prefix => ':foo' To test it out, I created a

[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 Helpe

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

2008-05-13 Thread Steve Downey
working 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

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 s

[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 li

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 7

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 t

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 la

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

[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 /opt

[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? Tha

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 Rub

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

2008-03-14 Thread Steve Tooke
the self.included method from the module, 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 ___

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 add

[rspec-users] Session empty after request

2008-03-08 Thread Steve
.should_receive(:set_current_user) do_request end When I watch the spec with my debugger, when it gets to the code, the session is empty, and the spec fails. What would be causing this? Am I setting the session wrong? I have also tried just session, and request.session with the same results.

[rspec-users] rspec_controller generator for HAML?

2008-02-18 Thread Steve
Is there currently an option to have the rspec_controller generator generate haml instead of erb view files, and the corresponding spec? Thanks, Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec

Re: [rspec-users] File loading bug

2008-02-18 Thread Steve
On Mon, 18 Feb 2008 17:06:03 -0500, David Chelimsky wrote: > On Feb 18, 2008 4:59 PM, Steve > <[EMAIL PROTECTED]> wrote: >> Not sure if this is rspec or autotest. When autotest is running, and I >> add new files in my rails project, it doesn't notice. I have to restar

[rspec-users] File loading bug

2008-02-18 Thread Steve
Not sure if this is rspec or autotest. When autotest is running, and I add new files in my rails project, it doesn't notice. I have to restart autotest for it to start seeing them. Not the end of the world, just a small inconvenience.

Re: [rspec-users] Helpers in view specs

2008-02-17 Thread Steve
On Sun, 17 Feb 2008 12:40:31 -0500, David Chelimsky wrote: > On Feb 17, 2008 11:17 AM, Steve > <[EMAIL PROTECTED]> wrote: >> >> In the example I actually have "include ApplicationHelper" in there, >> and am using a method "row_class_for_idx" in t

Re: [rspec-users] Helpers in view specs

2008-02-17 Thread Steve
On Sun, 17 Feb 2008 08:06:10 -0500, David Chelimsky wrote: > On Feb 17, 2008 1:08 AM, Steve > <[EMAIL PROTECTED]> wrote: >> I'm not sure of what the community stance is on this, but is there a >> builtin way to include helpers in view specs? Is this practice shunned?

[rspec-users] Helpers in view specs

2008-02-16 Thread Steve
n 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@rub

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

2008-02-16 Thread Steve
necessary loading in that file. There's really no way 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

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

2008-02-16 Thread Steve
On Sat, 16 Feb 2008 18:13:51 +, Steve wrote: > What was the nature of the changes. I just updated to r3312, and when I > run autotest I get: > > loading autotest/rails_rspec > /usr/bin/ruby1.8 -S script/spec -O spec/spec.opts No > server is running > > I've

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 >&g

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 i

[rspec-users] Run all tests after success

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

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

[rspec-users] Wrong ZenTest being used?

2008-02-14 Thread Steve
ing from 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/m

Re: [rspec-users] Failed specs spike autotest

2008-02-14 Thread Steve
nching into all of that. I think it then thinks that perhaps the broken specs are fixed, so that's 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/s

[rspec-users] Failed specs spike autotest

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

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,

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

2008-02-04 Thread Steve Hayes
rlier 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/ma

[rspec-users] Should receive field_for failing

2007-11-14 Thread Steve
ddress'. 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

[rspec-users] be_success misleading

2007-11-10 Thread Steve
as not. Perhaps something like 'response.should have_success_status'? Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[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 now

[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 now

Re: [rspec-users] Test that controller includes helpers?

2007-11-03 Thread Steve
at the controller instance that was called though? If I could do that, I could simply check for a responds_to at the very least, right? I understand what you mean by blurring the lines though. Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

  1   2   >