[Rails] rspec-mocks and rspec-rails-2.10.1 are released!

2012-05-04 Thread David Chelimsky
These are patch releases recommended for anybody who has already upgraded to 2.10. ### rspec-mocks-2.10.1 full changelog: http://github.com/rspec/rspec-mocks/compare/v2.10.0...v2.10.1 Bug fixes * fix [regression of edge case behavior](https://github.com/rspec/rspec-mocks/issues/132) * fixed

[Rails] rspec-expectations-2.9.1 is released!

2012-04-03 Thread David Chelimsky
rspec-expectations-2.9.1 is released! This is a bug-fix only release, and is recommended for everybody using rspec-2.9. ### rspec-expectations-2.9.1 / 2012-04-03 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.9.0...2.9.1) Bug fixes * Provide a helpful message if the di

Re: [Rails] rspec: mocking a reference to a polymorphic model?

2012-03-29 Thread David Chelimsky
On Thu, Mar 22, 2012 at 7:23 AM, Fearless Fool wrote: > The basic question: how do you mock (or stub) a reference to a > polymorphic class in RSpec?  Trying the obvious thing leads to an error > of the form: > >   undefined method `base_class' for Post:Class > > === The details: > > # file: app/mo

Re: [Rails] Best place for RSpec/Rails questions?

2012-03-29 Thread David Chelimsky
On Thu, Mar 22, 2012 at 1:12 PM, Pito Salas wrote: > I've tried a question on StackOverflow and on > http://www.ruby-forum.com/forum/rspec. Are those the best sources for > rspec-in-rails questions, or should I post in the Rails forum itself? > Anyone have an opinion? http://rubyforge.org/mailman

[Rails] rspec-2.9.0 is released!

2012-03-17 Thread David Chelimsky
rspec-2.9.0 is released wtih lots of bug fixes and a few minor feature improvements as well. Enjoy! ### rspec-core-2.9.0 / 2012-03-17 [full changelog](http://github.com/rspec/rspec-core/compare/v2.8.0...v2.9.0) Enhancements * Support for "X minutes X seconds" spec run duration in formatter. (uz

[Rails] Re: rspec-2.9.0.rc1 is released!

2012-03-12 Thread David Chelimsky
There was an error in one of the gemspecs so I just released 2.9.0.rc2. No other changes since rc1. Cheers, David On Sun, Mar 11, 2012 at 9:10 PM, David Chelimsky wrote: > rspec-2.9.0.rc1 has been released, with numerous enhancements and bug fixes: > > ### rspec-core-2.9.0.rc1 / 2

[Rails] rspec-2.9.0.rc1 is released!

2012-03-11 Thread David Chelimsky
rspec-2.9.0.rc1 has been released, with numerous enhancements and bug fixes: ### rspec-core-2.9.0.rc1 / 2012-03-11 [full changelog](http://github.com/rspec/rspec-core/compare/v2.8.0...v2.9.0.rc1) Enhancements * Support for "X minutes X seconds" spec run duration in formatter. (uzzz) * Strip whit

[Rails] Re: Bundler ignoring rspec

2011-10-30 Thread David Chelimsky
On Oct 30, 3:44 pm, Leonardo Mateo wrote: > On Sun, Oct 30, 2011 at 5:07 PM, Leonardo Mateo > wrote: > > On Sun, Oct 30, 2011 at 2:59 PM, David Chelimsky > > wrote: > >> On Oct 30, 12:09 pm, Leonardo Mateo wrote: > >>> Hi guys, > >>> I

[Rails] Re: Bundler ignoring rspec

2011-10-30 Thread David Chelimsky
On Oct 30, 12:09 pm, Leonardo Mateo wrote: > Hi guys, > I'm having a problem that's driving me nuts. > I have a rails 3.1.1 project in which bundler is ignoring RSpec, no > matter what I set rspec or rspec-rails it never gets installed. What is the specific behavior you're not seeing? i.e. do you

[Rails] rspec-core 2.7.1 is released!

2011-10-20 Thread David Chelimsky
rspec-core 2.7.1 is released! ### rspec-core-2.7.1 / 2011-10-20 [full changelog](http://github.com/rspec/rspec-core/compare/v2.7.0...v2.7.1) * Bug fixes * tell autotest the correct place to find the rspec executable -- You received this message because you are subscribed to the Google Groups

[Rails] rspec 2.7.0 is released!

2011-10-16 Thread David Chelimsky
h other command line tools. As of 2.7.0, you must explicity `require "rspec/autorun"` unless you use the `rspec` command (which already does this for you). * Enhancements * Add example.exception (David Chelimsky) * `--default_path` command line option (Justin Ko) * support multiple

[Rails] rspec 2.7.0.rc1 is released!

2011-10-09 Thread David Chelimsky
, but we're making an exception to release a change to how RSpec interacts with other command line tools. As of 2.7.0, you must explicity `require "rspec/autorun"` unless you use the `rspec` command (which already does this for you). * Enhancements * Add example.except

[Rails] Re: How do I generate the Rspec file for an already existing model in Rails 3?

2011-08-22 Thread David Chelimsky
On Aug 22, 2:18 pm, Ezequiel Schwartzman wrote: > I've seen guides for Rspec that say to use rspec_model script, but in > Rails 3 you don't have the script folder, and the only Rspec generator > that I have is rspec:install. > > The other way is generate them automatically when scaffolding, but I

[Rails] Re: have_selector syntax?

2011-07-26 Thread David Chelimsky
On Jul 26, 9:51 am, 7stud -- wrote: > Where are the docs for have_selector()? > rspec-rails 2.6.1 > rails 3.0.9 have_selector comes from capybara. I don't see docs for it, but there is some helpful info if you google "capybara have_selector" HTH, David -- You received this message because you

[Rails] Re: What does using a lambda in rspec tests accomplish?

2011-07-25 Thread David Chelimsky
On Jul 25, 6:40 pm, 7stud -- wrote: > John Feminella wrote in post #1012869: > > > In other words, it > > needs a "before" to start with and an "after" to compare to. With a > > lambda, this is accomplished by measuring the thing you want to check > > before the lambda is run, and then again aft

Re: [Rails] Re: spork error: Gem::LoadError

2011-07-18 Thread David Chelimsky
On Jul 18, 2011, at 1:27 AM, 7stud -- wrote: > Conrad Taylor wrote in post #1011293: >> On Sat, Jul 16, 2011 at 4:34 AM, 7stud -- wrote: >> >>> versions back to the old versions, but now I get that spork error. Is >>> there a way to 'unactivate' spork 0.9.0 and 'activate' spork 0.8.4? >>> >>>

Re: [Rails] do tests save anything in the test db?

2011-07-17 Thread David Chelimsky
On Sun, Jul 17, 2011 at 7:12 AM, 7stud -- wrote: > I have some validation tests that create!() Users, but after running the > tests I don't see anything in my test db.  What is supposed to happen? Yes. By default, the Rails test framework is configured to run each test method in a transaction whi

Re: Re(2): [Rails] Rails 3.1 & RSpec: Puzzled by template rendering failures

2011-07-16 Thread David Chelimsky
On Jul 10, 2011, at 4:47 PM, Leigh Daniels wrote: > Thanks, Conrad. > > I'm all green now! > > **Leigh > > On Sun, Jul 10, 2011, Conrad Taylor wrote: > >> Leigh, you're controller spec appear to be missing a call to the following: >> >> render_views Leigh, Conrad, Without render_views, an

Re: [Rails] RoutingError with RSpec Controller test on Scoped Route

2011-07-16 Thread David Chelimsky
On Jul 14, 2011, at 5:00 PM, Otis Harrison wrote: > So I have a route that looks like this: > > > scope "4" do > scope "public" do >scope ":apikey" do > resources :shops >end > end > end > > > And a bunch of controller specs, an example of which looks like this: > > > describe

[Rails] Re: Testing RSpec views: the index action; is my methodology flawed?

2011-06-30 Thread David Chelimsky
On Jun 30, 2:01 pm, David Zhang wrote: > This is my organizations_controller_spec.rb: > > require 'spec_helper' > > describe Superadmin::OrganizationsController do >   describe "GET index" do >     it "shows a list of all organizations" do >       #pending "don't know why this doesn't work" >  

[Rails] Re: RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)

2011-06-29 Thread David Chelimsky
On Jun 29, 1:46 pm, David Zhang wrote: > ...That's odd.  I just read The RSpec Book, and it explains how double isn't > sufficient when you're testing something related to form_for.  The book, in > its example, says to use mock_model("Message").as_new_record... > and anyway in my case neither meth

[Rails] Re: RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)

2011-06-29 Thread David Chelimsky
On Jun 29, 12:16 pm, David Zhang wrote: > Thank you very much!  So I guess it was a simple issue. > > But what would I do for the form_for @user_session?  I tried... > >     before(:each) do >       assign(:user_session, mock_model("UserSession").as_new_record) >     end > > But that returns the

[Rails] Re: RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)

2011-06-29 Thread David Chelimsky
On Jun 29, 11:07 am, David Zhang wrote: > In my user_sessions_controller: > > class UserSessionsController < ApplicationController >   before_filter :require_no_user, :only => [:create, :new] >   before_filter :require_user, :only => :destroy > >   def new >     @user_session = UserSession.new >  

[Rails] Re: RSpec / Capybara ? (from The RSpec Book): Why might "should have_selector" silently pass when nested?

2011-06-13 Thread David Chelimsky
ks. > I'm guessing has_content? is specific to Capybara... is "should > contain" the equivalent in webrat? Yep. > > Thanks again. > > On Jun 13, 11:02 am, David Chelimsky wrote: > > > > > On Jun 13, 8:36 am, daze wrote: > > > > I

[Rails] Re: RSpec / Capybara ? (from The RSpec Book): Why might "should have_selector" silently pass when nested?

2011-06-13 Thread David Chelimsky
On Jun 13, 8:36 am, daze wrote: > I'm going through The RSpec Book, and (specifically around page 333) I > encountered a problem.  Basically, whenever I use "should > have_selector" in a nested form, it silently passes when it SHOULD > fail. > > I've been copying the code exactly as from the book.

[Rails] Re: how can I investigate when a rspec test fails?

2011-05-28 Thread David Chelimsky
On May 28, 12:59 pm, Mauro wrote: > For example: > > it "re-renders the 'new' template" do >       # Trigger the behavior that occurs when invalid params are submitted >       Sector.any_instance.stub(:save).and_return(false) >       post :create, :sector => {} >       response.should render_tem

[Rails] rspec-rails-2.6.1 is released!

2011-05-25 Thread David Chelimsky
rspec-rails-2.6.1 is released! This is a bug fix release that is compatible with the rails-3.0.0 to 3.0.7, 3.0.8.rc1, and 3.1.0.rc1 (it is mostly, but not fully compatible with but not rails-3.1.0.beta1). ### rspec-rails-2.6.1 / 2011-05-25 full changelog: http://github.com/rspec/rspec-rails/co

[Rails] rspec-core-2.6.1 is released!

2011-05-19 Thread David Chelimsky
rspec-core-2.6.1 is released! This is a bug fix release, restoring integration with with rcov. full changelog: http://github.com/rspec/rspec-core/compare/v2.6.0...v2.6.1 * Bug fixes * Don't extend nil when filters are nil * `require 'rspec/autorun'` when running rcov. -- You received this

[Rails] rspec-2.6.0.rc6 is released!

2011-05-06 Thread David Chelimsky
We're doing one more release candidate to update rspec-rails to work with rails-3.1.0.beta1. This will hopefully be the last release candidate, with a final release coming in just a few days. ### rspec-rails-2.6.0.rc6 full changelog: http://github.com/rspec/rspec-rails/compare/v2.6.0.rc4...v2.

[Rails] rspec-2.6.0.rc2 is released!

2011-04-17 Thread David Chelimsky
We're releasing rspec-2.6.0.rc2 as a release candidate as there are some internal changes that we'd like to see put through their paces before doing a final release. Note that the changes I speak of are internal. There are no new deprecations in this release, nor any backward-incompatible change

[Rails] rspec-core-2.5.1 is released!

2011-02-06 Thread David Chelimsky
rspec-core-2.5.1 is released! [full changelog](http://github.com/rspec/rspec-core/compare/v2.5.0...v2.5.1) This release breaks compatibility with rspec/autotest/bundler integration, but does so in order to greatly simplify it. With the release of rspec-core-2.5.1, if you want the generated

[Rails] rspec-2.5.0 is released!

2011-02-06 Thread David Chelimsky
RSpec-2.5.0 is released! This is a minor upgrade, and is fully backward compatible with rspec-2.4. It includes several bug fixes, enhancements, and one deprecation. See the changelog below for details. We had a little glitch publishing the docs to [http://relishapp.com/rspec](http://relishapp.

[Rails] rspec-rails-2.4.1 is released!

2011-01-02 Thread David Chelimsky
This is a bug fix release recommended for all users who have upgraded to rspec-rails-2.4. ### rspec-rails-2.4.1 / 2011-01-03 [full changelog](http://github.com/rspec/rspec-rails/compare/v2.4.0...v2.4.1) * Bug fixes * fixed bug caused by including some Rails modules before RSpec's RailsExa

[Rails] rspec-rails-2.4.0 is released!

2011-01-02 Thread David Chelimsky
### rspec-rails-2.4.0 / 2011-01-02 [full changelog](http://github.com/rspec/rspec-rails/compare/v2.3.1...2.4.0) * Enhancements * include ApplicationHelper in helper object in helper specs * include request spec extensions in files in spec/integration * include controller spec extensions in

[Rails] rspec-2.4.0 is released!

2011-01-02 Thread David Chelimsky
Changes to rspec-core listed below. There are no functional changes to rspec-mocks or rspec-expectations for this release. Happy New Year! Cheers, David ### rspec-core-2.4.0 / 2011-01-02 [full changelog](http://github.com/rspec/rspec-core/compare/v2.3.1...v2.4.0) * Enhancements * start the

[Rails] rspec-core-2.3.1 is released

2010-12-16 Thread David Chelimsky
### rspec-core-2.3.1 / 2010-12-16 full changelog: http://github.com/rspec/rspec-core/compare/v2.3.0...v2.3.1 * Bug fixes * send debugger warning message to $stdout if RSpec.configuration.error_stream has not been defined yet. * HTML Formatter _finally_ properly displays nested groups (Ja

[Rails] rspec-rails-2.3.1 is released!

2010-12-16 Thread David Chelimsky
### rspec-rails-2.3.1 / 2010-12-16 [full changelog](http://github.com/rspec/rspec-rails/compare/v2.3.0...v2.3.1) * Bug fixes * respond_to? correctly handles 2 args * scaffold generator no longer fails on autotest directory -- You received this message because you are subscribed to the Googl

[Rails] rspec-2.3.0 is released

2010-12-12 Thread David Chelimsky
rspec-2.3.0 is released (including rspec, rspec-core, rspec-mocks, rspec-expecations and rspec-rails). ### rspec-core-2.3.0 / 2010-12-12 [full changelog](http://github.com/rspec/rspec-core/compare/v2.2.1...v2.3.0) * Enhancements * tell autotest to use "rspec2" if it sees a .rspec file in the

[Rails] Re: Rails 3 rspec 2 rendering XML repsonse.should contain(.to_xml)

2010-11-29 Thread David Chelimsky
On Nov 29, 2:58 pm, GregD wrote: > Hi all, > > Is there an issue with Rails 3 or rspec 2 that the > repond_with({"success" => "test") where the response is not an xml > text? > > I have almost converted an old Rails 2 app to Rails 3 and having an > issue with the rspec tests and the response con

[Rails] rspec-core-2.2.1 is released!

2010-11-29 Thread David Chelimsky
### rspec-core-2.2.1 / 2010-11-28 [full changelog](http://github.com/rspec/rspec-core/compare/v2.2.0...master) * Bug fixes * alias_method instead of override Kernel#method_missing (John Wilger) * changed --autotest to --tty in generated command (MIKAMI Yoshiyuki) * revert change to debugge

[Rails] rspec-2.2 is released!

2010-11-28 Thread David Chelimsky
### rspec-core-2.2.0 [full changelog](http://github.com/rspec/rspec-core/compare/v2.1.0...master) * Deprecations/changes * --debug/-d on command line is deprecated and now has no effect * win32console is now ignored; Windows users must use ANSICON for color support (Bosko Ivanisevic) *

[Rails] rspec-2.1 is released!

2010-11-07 Thread David Chelimsky
### rspec-core-2.1.0 / 2010-11-07 [Cucumber features](http://relishapp.com/rspec/rspec-core/v/2-1) [RDoc](http://rdoc.info/gems/rspec-core/2.1.0/frames) # will be generated by 2010-11-08 [full changelog](http://github.com/rspec/rspec-core/compare/v2.0.1...v2.1.0) * Enhancments * Add skip_bundl

[Rails] rspec-2.0.1 is released!

2010-10-18 Thread David Chelimsky
This is primarily a bug-fix release for rspec-core: ### rspec-core-2.0.1 [full changelog](http://github.com/rspec/rspec-core/compare/v2.0.0...v2.0.1) * Bug fixes * restore color when using spork + autotest * Pending examples without docstrings render the correct message (Josep M. Bach) *

[Rails] rspec-rails-2.0.1 is released!

2010-10-15 Thread David Chelimsky
The rails-3.0.1 release excluded a change that I had naively expected to be included. This upgrade is only necessary if you write view specs and are upgrading to rails-3.0.1. To upgrade, all you need to do is change your Gemfile to read: gem "rspec-rails", "2.0.1" And then run bun

[Rails] RSpec-2.0.0 is released!

2010-10-10 Thread David Chelimsky
## RSpec-2.0.0 has been released! This marks the end of a year-long effort that improves RSpec in a number of ways, including modularity, cleaner code, and much better integration with Rails-3 than was possible before (see http://blog.davidchelimsky.net/2010/01/25/rspec-20-in-the-works/). ###

[Rails] Re: Why is RSpec so slow with Rails 3?

2010-10-09 Thread David Chelimsky
Once you've paid the startup debt (which comes from a combination of rspec, rails, bundler), it should be < 0.001 seconds for one example unless you're connecting to an external service of some sort. Although that's what I'm seeing on Mac/Linux. Any Windows users wanna report on

[Rails] rspec-1.3.1 and rspec-rails-1.3.3 are released!

2010-10-09 Thread David Chelimsky
I just released rspec-1.3.1 and rspec-rails-1.3.3. These are mostly bug fixes that have been sitting around for all to long as I focused on rspec-2 (coming very soon). Report issues for rspec[-rails]-1.x to https://rspec.lighthouseapp.com/projects/5645. Docs: http://rspec.info/ http://rdoc.inf

[Rails] Re: Why is RSpec so slow with Rails 3?

2010-10-09 Thread David Chelimsky
On Oct 9, 8:32 pm, egervari wrote: > I'm just learning my way through ruby and rails to learn it. One thing > I noticed is that testing 1 spec class with 1 test takes about 20 > seconds. It's not even using any rails functionality at all. I am just > concatenating some strings together and doing s

[Rails] rspec-2.0.0.rc is released

2010-10-04 Thread David Chelimsky
rspec-2.0.0.rc is released! See http://blog.davidchelimsky.net/2010/07/01/rspec-2-documentation/ for links to all sorts of documentation on rspec-2. Plan is to release rspec-2.0.0 (final) within the next week, so please install, upgrade, etc, and report issues to: http://github.com/rspec/rspec

[Rails] rspec-1.3.1.rc and rspec-rails-1.3.3.rc are released!

2010-10-03 Thread David Chelimsky
rspec-1.3.1.rc and rspec-rails-1.3.3.rc are released! These are release candidate gems for updates 1.x series, including some bug fixes and deprecation warnings for functionality that will be removed in rspec-2. Barring unexpected complications, I'll release final versions of these gems within

[Rails] rspec-2.0.0.beta.22 has been released!

2010-09-12 Thread David Chelimsky
rspec-2.0.0.beta.22 has been released! We're getting very close to a 2.0 release candidate, so if you're not already using rspec-2 (with or without rails-3), now is the time to start. I need your feedback, so from here on in I'll be sending out announcements and release notes for each beta rele

[Rails] Re: Controller methods over instance variables?

2010-02-08 Thread David Chelimsky
On Feb 8, 4:44 am, Andrew France wrote: > Hi, > > I was thinking whether it would be more elegant for a view to call > methods on the controller rather than rely on instance variables. I'm > not really sure what the answer is so thought I would throw it out > here. > Perhaps with a basic DSL tha

[Rails] [ANN] rspec-rails 1.3.0 Released

2010-01-11 Thread David Chelimsky
rspec-rails version 1.3.0 has been released! * * * * * Behaviour Driven Development for Ruby on Rails. Changes: ### Version 1.3.0 / 2010-01-11 *

[Rails] [ANN] rspec 1.3.0 Released

2010-01-11 Thread David Chelimsky
see rdoc for Spec::Matchers * and_yield provides configurable eval_context * Eric Meyer & David Chelimsky * CTRL-C actually stops execution! (Bryan Helmkamp - #911) * make drb port configurable (Chris Flipse - #875) * changed raise_error to raise_exception (#933) * kept raise_err

[Rails] [ANN] rspec-rails 1.2.9 Released

2009-10-05 Thread David Chelimsky
rspec-rails version 1.2.9 has been released! * * * * * Behaviour Driven Development for Ruby on Rails. Changes: ### Version 1.2.9 / 2009-10-05

[Rails] [ANN] rspec 1.2.9 Released

2009-10-05 Thread David Chelimsky
rspec version 1.2.9 has been released! * * * * * Behaviour Driven Development for Ruby. Changes: ### Version 1.2.9 / 2009-10-05 * enhancements * manage backtrace-ignore patterns with Spec:

[Rails] [ANN] rspec and rspec-rails 1.2.9.rc1 Released

2009-09-14 Thread David Chelimsky
rspec and rspec-rails version 1.2.9.rc1 have been released! === We're using the new rubygems prerelease feature to do proper release candidates. This feature was introduced to rubygems a couple of versions back, but I'd recommend updating to

[Rails] [ANN] rspec 1.2.8 Released

2009-07-16 Thread David Chelimsky
rspec version 1.2.8 has been released! * * * * * Behaviour Driven Development for Ruby. Changes: ### Version 1.2.8 / 2008-07-16 * enhancements * better messages for should[_not] be_nil (Ch

[Rails] Re: [ANN] rspec-rails 1.2.7 Released

2009-06-22 Thread David Chelimsky
I just pushed 1.2.7.1 to fix a bug in "script/generate rspec". Please use this instead of the 1.2.7 gem. Cheers, David On Mon, Jun 22, 2009 at 9:21 PM, David Chelimsky wrote: > rspec-rails-1.2.7 has been released! > > Behaviour Driven Development for Ruby on Rails. > >

[Rails] [ANN] rspec-rails 1.2.7 Released

2009-06-22 Thread David Chelimsky
rspec-rails-1.2.7 has been released! Behaviour Driven Development for Ruby on Rails. Changes: ### Version 1.2.7 / 2009-06-22 * enhancements * alias :stub!, :stub so rspec-rails extensions of rspec stubs can use the same syntax as rspec (core) * integration specs (Ben Mabey and David

[Rails] [ANN] rspec 1.2.7 Released

2009-06-22 Thread David Chelimsky
rspec-1.2.7 has been released! * * * * * Behaviour Driven Development for Ruby. Changes: ### Version 1.2.7 / 2009-06-22 * enhancments * added support for fakes using obj.stub(:method) { #

[Rails] [ANN] rspec-rails 1.2.6 Released

2009-04-30 Thread David Chelimsky
rspec-rails version 1.2.6 has been released! Behaviour Driven Development for Ruby on Rails. ### Version 1.2.6 / 2009-04-30 * bug fixes * restored rake tasks for rspec[-rails] as plugins * * *

[Rails] [ANN] rspec 1.2.6 Released

2009-04-30 Thread David Chelimsky
rspec version 1.2.6 has been released! Behaviour Driven Development for Ruby. Changes: ### Version 1.2.6 / 2009-04-30 * bug fixes * gem actually built with spec executable * * * * * --~--

[Rails] [ANN] rspec-rails 1.2.5 Released

2009-04-29 Thread David Chelimsky
rspec-rails version 1.2.5 has been released! * * * * * Behaviour Driven Development for Ruby on Rails. Changes: ### Version 1.2.5 / 2009-04-29

[Rails] [ANN] rspec 1.2.5 Released

2009-04-29 Thread David Chelimsky
rspec version 1.2.5 has been released! * * * * Behaviour Driven Development for Ruby. Changes: ### Version 1.2.5 / 2009-04-29 * enhancements * name argument to mock/stub is now optional (c

[Rails] [ANN] rspec 1.2.4 Released

2009-04-15 Thread David Chelimsky
rspec version 1.2.4 has been released! Be sure to check History.rdoc and Updgrade.rdoc at http://rspec.rubyforge.org/rspec/1.2.4/ before upgrading. * * * * Behaviour Driven Development for Ruby

[Rails] [ANN] rspec-rails 1.2.2 Released

2009-03-22 Thread David Chelimsky
rspec-rails version 1.2.2 has been released! * * * * * Behaviour Driven Development for Ruby on Rails. Changes: ### Version 1.2.2 / 2009-03-22

[Rails] [ANN] rspec 1.2.2 Released

2009-03-22 Thread David Chelimsky
rspec version 1.2.2 has been released! * * * * Behaviour Driven Development for Ruby. Changes: ### Version 1.2.2 / 2009-03-22 Bug-fix release (fixes regression introduced in 1.2.1) * bug fix

[Rails] [ANN] rspec 1.2.1 Released

2009-03-22 Thread David Chelimsky
rspec version 1.2.1 has been released! * * * * Behaviour Driven Development for Ruby. Changes: ### Version 1.2.1 / 2009-03-22 This is a bug-fix release, recommended for anybody who has alread

[Rails] [ANN] rspec-rails 1.2.1 Released

2009-03-22 Thread David Chelimsky
rspec-rails version 1.2.1 has been released! * * * * * Behaviour Driven Development for Ruby on Rails. Changes: ### Version 1.2.1 / 2009-03-22

[Rails] Re: Problem running autotest in rails 2.3

2009-03-22 Thread David Chelimsky
On Mar 21, 11:58 pm, Phor Gruber wrote: > People, > > I'm trying to run autotest on rails 2.3 > > I get a NoMethodError. > > Here is what I see: > > Sat Mar 21 20:47 /b/tmp/myfc23 maco$ > Sat Mar 21 20:47 /b/tmp/myfc23 maco$ autotest > loading autotest/rails_rspec > ./vendor/plugins/rspec/lib/a

[Rails] [ANN] rspec 1.2.0 Released

2009-03-15 Thread David Chelimsky
lots of ruby 1.9.1 compatibility fixes from Chad Humprhies * improved feedback from be_kind_of/be_a_kind_of/be_instance_of/be_an_instance_of (Jakub Šťastný) * added --format silent (l) option, which is now the default when running --heckle (Bob Aman) * sexy new custom matcher creation

[Rails] [ANN] rspec-rails 1.2.0 Released

2009-03-15 Thread David Chelimsky
rspec-rails version 1.2.0 has been released! * * * * Behaviour Driven Development for Ruby on Rails. Changes: ### Version 1.2.0 IMP

[Rails] [ANN] The RSpec Book is now in beta

2009-01-29 Thread David Chelimsky
community that has evolved around it, so thank you, thank you, thank you. Again, THANK YOU! David Chelimsky --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this

[Rails] Re: can one test manual transactions in Rspec/UnitTest noting the testing framework wraps its DB work in a transaction & mysql doesn't allow nested transactions?

2009-01-15 Thread David Chelimsky
On Wed, Jan 14, 2009 at 1:27 AM, Greg Hauptmann wrote: > Hi, > > Just wondering, can one test manual transactions in Rspec/UnitTest noting > the testing framework wraps its DB work in a transaction & mysql doesn't > allow nested transactions? Wrapping code examples (in rspec) or test methods (in

[Rails] Re: rspec fails when assigning to an ActiveRecord field

2008-10-24 Thread David Chelimsky
r myself if possible. http://rspec.info/documentation/mocks/ Cheers, David > > On Oct 19, 6:15 pm, "David Chelimsky" <[EMAIL PROTECTED]> wrote: >> On Wed, Oct 15, 2008 at 11:48 PM, leo <[EMAIL PROTECTED]> wrote: >> >> > HI, >> > I have a controller ac

[Rails] Re: rspec fails when assigning to an ActiveRecord field

2008-10-19 Thread David Chelimsky
On Wed, Oct 15, 2008 at 11:48 PM, leo <[EMAIL PROTECTED]> wrote: > > HI, > I have a controller action that assigns a user_id to an event record. > The app works fine from the browser. However, rspec fails and I > cannot figure out why. I have several tests failing but I'll give an > example crea

[Rails] Re: OT: What happened to Rspec Google group?

2008-10-07 Thread David Chelimsky
On Mon, Oct 6, 2008 at 5:12 PM, John Ivanoff <[EMAIL PROTECTED]> wrote: > > It disappeared over the weekend. Anybody know what happened? I have no idea why it's gone, but it was a mirror for the rspec-users list at rubyforge: http://rubyforge.org/mailman/listinfo/rspec-users Which you can als

[Rails] Re: rspec story - access session

2008-09-10 Thread David Chelimsky
On Thu, Aug 28, 2008 at 8:41 AM, snitko <[EMAIL PROTECTED]> wrote: > > Very simple, but not googlable: how do I access 'session' in my story? > In rspec controller specs I could just say session[:user] for example, > but this doesn't work here. Hi, There's no support for what you are trying to d