I get the following error when trying to run a spec command on a model
test.
The command is :- C:\Rspec Test\spec\models>spec bank_account_spec.rb
The error is :-
c:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-rails-1.3.0/lib/spec/rails/
matchers/ ar_be_valid.rb:2: uninitialized constant Spec::Rail
On 2011-09-21 9:35 PM, Patrick J. Collins wrote:
Hi,
I have some helper methods such as:
def mock_omniauth
OmniAuth.config.test_mode = true
OmniAuth.config.mock_auth[:facebook] = facebook_user
end
def facebook_user
@facebook_user ||=
HashWithIndifferentAccess.new(YAML.load(File.rea
On Sep 22, 2011, at 2:35 PM, Chandu80 wrote:
> I get the following error when trying to run a spec command on a model
> test.
>
> The command is :- C:\Rspec Test\spec\models>spec bank_account_spec.rb
The rspec command is designed to be run from the project root. Try:
C:\Rspec Test>spec spec\mod
Hi David,
Tried from the root directory,gives the same error.
C:/Rspec Test 1/rspec_demo/vendor/rails/activesupport/lib/
active_support/depende
ncies.rb:443:in `load_missing_constant': uninitialized constant
Spec::Rails (Nam
eError)
from C:/Rspec Test 1/rspec_demo/vendor/rails/activesuppor