On Wed, Sep 2, 2009 at 5:22 PM, theLemcke<sixtimesn...@gmail.com> wrote: > So I began with this setup: > http://www.robbyonrails.com/articles/2008/01/22/installing-ruby-on-rails-and-postgresql-on-os-x-third-edition > > Created a basic rails setup, ran 'script/generate rspec' and 'script/ > generate rspec_model Note' and tried to run 'note_spec.rb' and I > encountered this error: > > /Users/sixtimesnine/Rails/TestApps/NotesApp/spec/spec_helper.rb:13: > undefined local variable or method `__FILE' for main:Object
This was a typo that was in a commit but not in a release - not sure how you ended up with it - but search for __FILE (without the trailing __). HTH > (NameError) from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/ > custom_require.rb:31:in `gem_original_require' from /opt/local/lib/ > ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' from / > Users/sixtimesnine/Rails/TestApps/NotesApp/spec/models/note_spec.rb:1 > from /Users/sixtimesnine/Rails/TestApps/NotesApp/vendor/plugins/rspec/ > lib/spec/runner/example_group_runner.rb:15:in `load' from /Users/ > sixtimesnine/Rails/TestApps/NotesApp/vendor/plugins/rspec/lib/spec/ > runner/example_group_runner.rb:15:in `load_files' from /Users/ > sixtimesnine/Rails/TestApps/NotesApp/vendor/plugins/rspec/lib/spec/ > runner/example_group_runner.rb:14:in `each' from /Users/sixtimesnine/ > Rails/TestApps/NotesApp/vendor/plugins/rspec/lib/spec/runner/ > example_group_runner.rb:14:in `load_files' from /Users/sixtimesnine/ > Rails/TestApps/NotesApp/vendor/plugins/rspec/lib/spec/runner/ > options.rb:107:in `run_examples' from /Users/sixtimesnine/Rails/ > TestApps/NotesApp/vendor/plugins/rspec/lib/spec/runner/command_line.rb: > 9:in `run' from /Users/sixtimesnine/Library/Application Support/ > TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/ > runner.rb:37:in `run' from /Users/sixtimesnine/Library/Application > Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/ > runner.rb:36:in `chdir' from /Users/sixtimesnine/Library/Application > Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/ > runner.rb:36:in `run' from /Users/sixtimesnine/Library/Application > Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/ > runner.rb:14:in `run_file' from /tmp/textmate-command-335.rb:3 > > Sorry if this is a double post > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users