Rails 3 Upgrade

Hi,

I am upgrading a rails 2.1.0 app to Rails 3. Before I started my
migration, I wrote all the tests cases for my app in Rspec 1.x version.

I am doubting whether rspec test cases written in 1.x version will work
when my app starts running in Rails3. After I upgrade to rails 3, i want
to run my rspec 1.x version tests cases on it to see if I have broken
anything during the upgrade.

Will RSpec 1.x version work in a Rails 3 application ? Please help.

On Mar 1, 2011, at 7:33 PM, Lakshmanan wrote:

Hi,

I am upgrading a rails 2.1.0 app to Rails 3. Before I started my migration, I
wrote all the tests cases for my app in Rspec 1.x version.

I am doubting whether rspec test cases written in 1.x version will work when my
app starts running in Rails3. After I upgrade to rails 3, i want to run my rspec
1.x version tests cases on it to see if I have broken anything during the upgrade.

Will RSpec 1.x version work in a Rails 3 application ? Please help.

Not out of the box, but a lot of what you’ve done will probably work
just fine. Start with the Upgrade information at:

http://relishapp.com/rspec/rspec-core
http://relishapp.com/rspec/rspec-rails
https://github.com/rspec/rspec-rails

and feel free to ask questions here if you run into any specific
problems.

Good luck!

On Tue, Mar 1, 2011 at 7:33 PM, Lakshmanan [email protected]invalid
wrote:

Hi,

I am upgrading a rails 2.1.0 app to Rails 3.

Just a note, you may want to try upgrading first to the latest Rails 2
(is
it still 2.3.9?) version. You will still have a lot to do jumping
between
the latest 2 and 3 but seems that a lot of the support and info out
there
targets that jump moreso than going from earlier 2 versions. May or may
not
be a big deal depending on your app.

You need to change a few syntax-related things, please check the group
archives this thread specifically
http://groups.google.com/group/rspec/browse_frm/thread/7e0232e668c679cc
(also linked from there
http://snyderscribbles.blogspot.com/2011/01/rspec-2-changes-from-rspec-1.html
)

Hey guys!

I got a serious issue right after upgraded to rails 3.

Rails doesn’t render layout, just only if I explicitly add this line to
actions at end of actions.

render :layout=>“application”

If I place layout “application” to the controller doesn’t work, but I
think it must have to work without anything. Cos That is the default
layout.

Any idea?

thx

Dzs

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs