когда я использую команду spec path / to / spec_file.rb, тогда приходит сообщение ниже. Я не уверен, что не так с моим RSpec или с моим ROR, так как я использую RVM (Rail 3 и Ruby 1.9.2)
/var/www/resource_mapper_spike/config/boot.rb:3: uninitialized constant YAML::ENGINE (NameError)
from /var/www/resource_mapper_spike/config/application.rb:1:in `require'
from /var/www/resource_mapper_spike/config/application.rb:1
from /var/www/resource_mapper_spike/config/environment.rb:2:in `require'
from /var/www/resource_mapper_spike/config/environment.rb:2
from /var/www/resource_mapper_spike/spec/spec_helper.rb:3:in `require'
from /var/www/resource_mapper_spike/spec/spec_helper.rb:3
from ./spec/models/layer_spec.rb:1:in `require'
from ./spec/models/layer_spec.rb:1
from /usr/lib/ruby/1.8/spec/runner/example_group_runner.rb:15:in `load'
from /usr/lib/ruby/1.8/spec/runner/example_group_runner.rb:15:in `load_files'
from /usr/lib/ruby/1.8/spec/runner/example_group_runner.rb:14:in `each'
from /usr/lib/ruby/1.8/spec/runner/example_group_runner.rb:14:in `load_files'
from /usr/lib/ruby/1.8/spec/runner/options.rb:134:in `run_examples'
from /usr/lib/ruby/1.8/spec/runner/command_line.rb:9:in `run'
from /usr/bin/spec:3