[rspec-users] rspec not loading rails files- uninitialized constant error

2011-02-20 Thread Samantha John
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

Re: [rspec-users] rspec not loading rails files- uninitialized constant error

2011-02-20 Thread Samantha John
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://

Re: [rspec-users] rspec not loading rails files- uninitialized constant error

2011-02-21 Thread Samantha John
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/. __