Hi experts,
I picked up a copy of the rspec book and wrote some tests in spec/lib
and spec/models for my Rails 2.3.8 code.
I was using rspec 2.5.1, rspec-core 2.5.0, rspec-expectations 2.5.0 et.
al.
But I realised that the rspec-rails version I am using is meant for
Rails3.
Which version of rsp
Craig Demyanovich wrote in post #983991:
> On Fri, Feb 25, 2011 at 4:30 PM, Radhesh Kamath
> wrote:
>
>> Which version of rspec-rails should I use for Rails 2.3.8?
>
>
> rspec-rails 1.3.3 is currently the latest release for Rails 2.3.x.
>
I am getting this error wit
P.S.:
I looked at this error and used the workaround you have suggested, but
it would be nice to use the errors_on, error_on etc. matchers (which is
why I moved to Rails 3 in the first place :))
https://rspec.lighthouseapp.com/projects/5645/tickets/962-missing-error_on-method-with-rails-3
--
Pos
David Chelimsky wrote in post #984311:
> On Feb 25, 2011, at 4:19 PM, Radhesh Kamath wrote:
>
>> I am getting this error with my current setup, which I think, should not
>> *** LOCAL GEMS ***
>> bouncy-castle-java (1.5.0145.2)
>> rack (1.2.1, 1.1.0)
>> ruby
Radhesh Kamath wrote in post #985062:
> spec_helper.rb looks like so:
> ENV["RAILS_ENV"] ||= 'development'
> require File.expand_path("../../config/environment", __FILE__)
>
> # Requires supporting ruby files with custom matchers and macros, etc,
>
Hi experts,
I am trying to test routing in my application, where all routes are
enclosed in a namespace like so:
scope 'v1' do
resource :blah end
collection do
something
end
end
end
Is there a clean way to set 'v1' somewhere and just write my routing
tests like so:
describe 'r
Justin Ko wrote in post #988825:
> On Tue, Mar 22, 2011 at 6:50 PM, Radhesh Kamath
> wrote:
>
>> end
>>
>> rspec-users@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>>
>
>
> You're mapping absolute strings (URL's)