Thanks David, this was exactly what I needed.
Per your advice I have moved user_spec.rb to the model, I was
experimenting with moving it around to see if that would change
anything.
Thanks again, rspec is a really nice piece of software.
Sam
--
Posted via http://www.ruby-forum.com/.
__
On Feb 20, 2011, at 8:12 PM, Samantha John wrote:
> I am new to rspec.
Welcome!
> I followed a few tutorials and set it up to test my
> existing rails project. I ran the rspec generators and created
> spec/user_spec.rb to test my user.rb model.
>
> The user.rb file starts with:
>
> class User
On Feb 20, 5:07 pm, Samantha John wrote:
> Additional info:
>
> Rails 3.0.3
> Ruby 1.8.7
>
> Gemfile:
> gem "rspec-rails", ">= 2.0.0.beta.10", :git =>
> "git://github.com/rspec/rspec-rails.git"
> gem "rspec", ">= 2.0.0.beta.10", :git =>
> "git://github.com/rspec/rspec.git"
>
Additional info:
Rails 3.0.3
Ruby 1.8.7
Gemfile:
gem "rspec-rails",">= 2.0.0.beta.10", :git =>
"git://github.com/rspec/rspec-rails.git"
gem "rspec", ">= 2.0.0.beta.10", :git =>
"git://github.com/rspec/rspec.git"
gem "rspec-core", ">= 2.0.0.beta.10", :git =>
"git://
I am new to rspec. I followed a few tutorials and set it up to test my
existing rails project. I ran the rspec generators and created
spec/user_spec.rb to test my user.rb model.
The user.rb file starts with:
class User < ActiveRecord::Base
The user_spec.rb file starts with:
describe User do
W