Rspec doesn't see my model Class. uninitialized constant error
问题 I'm writing tests on Rspec for my models in Ruby on Rails application. And I receive this error while starting 'rspec spec' command: /spec/models/client_spec.rb:4:in `<top (required)>': uninitialized constant Client (NameError) I use Rails 4.0.0 and Ruby 2.0.0 Here is my client_spec.rb: require 'spec_helper' describe Client do it 'is invalid without first_name', :focus => true do client = Client.new client.should_not be_valid end end And Gemfile: source 'https://rubygems.org' # Bundle edge