search for: run_example

Displaying 20 results from an estimated 39 matches for "run_example".

Did you mean: run_examples
2007 Oct 17
16
rspec causing validates_presence_of to validate twice?
I had posted this on the regular Rails list, but upon trying this in script/console, it seems like the behavior only exists when running rspec. I''m getting some weird behavior in one of my models. I have a model defined something like this class User < ActiveRecord::Base attr_accessor :password validates_presence_of :password end If I validate the model without specifying a
2007 Nov 09
9
fixture_file_upload and edge rspec?
Hi all, I had some specs that were using fixture_file_upload that were passing just fine. Then I froze edge rails to get some 2.0 functionality, then a I upgraded to trunk rspec to deal with uninitialized constant ActionView::Helpers::JavaScriptMacrosHelper After a couple other of tribulations, I have now gotten down to just a couple of not passing specs, all using the fixture_file_upload.
2011 Aug 09
0
Devise, RSpec and Webrat
...ample'' rspec (1.3.0) lib/spec/example/example_methods.rb:39:in `execute'' /usr/lib/ruby/1.8/timeout.rb:53:in `timeout'' rspec (1.3.0) lib/spec/example/example_methods.rb:37:in `execute'' rspec (1.3.0) lib/spec/example/example_group_methods.rb:214:in `run_examples'' rspec (1.3.0) lib/spec/example/example_group_methods.rb:212:in `each'' rspec (1.3.0) lib/spec/example/example_group_methods.rb:212:in `run_examples'' rspec (1.3.0) lib/spec/example/example_group_methods.rb:103:in `run'' rspec (1.3.0) lib/spec/runne...
2007 Oct 27
2
spec_distributed with rails
...nner Spec::Distributed::RindaSlaveRunner /Users/smt/src/web/urbis/trunk/vendor/plugins/rspec/lib/spec/runner/ options.rb:74:in `run'': wrong number of arguments (0 for 2) (ArgumentError) from /Users/smt/src/web/urbis/trunk/vendor/plugins/rspec/lib/ spec/runner/options.rb:74:in `run_examples'' from /Users/smt/src/web/urbis/trunk/vendor/plugins/rspec/lib/ spec/runner/command_line.rb:22:in `run'' from script/spec:4 Has anyone else used this? Any tips? (Also, I''ve run script/generate rspec since the last revision) Scott
2007 Dec 19
5
Installation Trouble
...na/ir/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions.rb:5 ... 18 levels... from C:/src/Aptana/ir/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:13:in `load_files'' from C:/src/Aptana/ir/vendor/plugins/rspec/lib/spec/runner/options.rb:83:in `run_examples'' from C:/src/Aptana/ir/vendor/plugins/rspec/lib/spec/runner/command_line.rb:19:in `run'' from C:/src/Aptana/ir/vendor/plugins/rspec/bin/spec:3 rake aborted! Command ruby -I"C:/src/Aptana/ir/vendor/plugins/rspec/lib" "C:/src/Aptana/ir/ven dor/plugins...
2007 Dec 28
3
Converting to Rails 2.0.2
...sers/sxross/rails/tastie_work/vendor/plugins/rspec_on_rails/ lib/spec/rails.rb:11 ... 11 levels... from /Library/Ruby/Gems/1.8/gems/rspec-1.1.1/lib/spec/runner/ example_group_runner.rb:13:in `load_files'' from /Library/Ruby/Gems/1.8/gems/rspec-1.1.1/lib/spec/runner/ options.rb:83:in `run_examples'' from /Library/Ruby/Gems/1.8/gems/rspec-1.1.1/lib/spec/runner/ command_line.rb:19:in `run'' from /Library/Ruby/Gems/1.8/gems/rspec-1.1.1/bin/spec:3 Anyone know what''s up here? Thx --s
2008 Jan 18
2
Rspec problem in testing RoR application
...m /home/anton/tele/trunk/vendor/plugins/rspec_on_rails/lib/spec/rails.rb:16 ... 11 levels... from /var/lib/gems/1.8/gems/rspec-1.1.2/lib/spec/runner/example_group_runner.rb:13:in `load_files'' from /var/lib/gems/1.8/gems/rspec-1.1.2/lib/spec/runner/options.rb:83:in `run_examples'' from /var/lib/gems/1.8/gems/rspec-1.1.2/lib/spec/runner/command_line.rb:19:in `run'' from /var/lib/gems/1.8/gems/rspec-1.1.2/bin/spec:4 And I don''t now what I must to do. Please help me:) Thanks for replies -- Posted via http://www.ruby-forum.com/.
2008 Jan 08
2
Problems with rspec 1.1 required inside rake tasks
...c-1.1.1/lib/spec/ > runner/options.rb:210:in `each'' > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.1.1/lib/spec/ > runner/options.rb:210:in `files_to_load'' > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.1.1/lib/spec/ > runner/options.rb:83:in `run_examples'' > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.1.1/lib/ > spec.rb:20:in `run'' > from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.1.1/lib/ > spec.rb:34 > from /usr/local/bin/rdebug:19 > Note that the spec runner is trying to load '...
2007 Nov 07
1
LoadError when upgraded to latest rspec trunk
...m /app/trunk/vendor/plugins/rspec_on_rails_old/lib/spec/rails/dsl/behaviour.rb:2 ... 24 levels... from /app/trunk/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:13:in `load_files'' from /app/trunk/vendor/plugins/rspec/lib/spec/runner/options.rb:75:in `run_examples'' from /app/trunk/vendor/plugins/rspec/lib/spec/runner/command_line.rb:21:in `run'' from ./script/spec:4 Any ideas on what might be wrong? I looked at that file and all it seems to be doing is requiring other files. I''m going to start a project from...
2009 Apr 22
1
Tests for my gem cannot find classes in gems lib directory ..
...ibrary/Ruby/Gems/1.8/gems/rspec-1.2.4/lib/spec/runner/ example_group_runner.rb:14:in `each'' from /Library/Ruby/Gems/1.8/gems/rspec-1.2.4/lib/spec/runner/ example_group_runner.rb:14:in `load_files'' from /Library/Ruby/Gems/1.8/gems/rspec-1.2.4/lib/spec/runner/ options.rb:99:in `run_examples'' from /Library/Ruby/Gems/1.8/gems/rspec-1.2.4/lib/spec/runner/ command_line.rb:9:in `run'' from /Library/Ruby/Gems/1.8/gems/rspec-1.2.4/bin/spec:4 rake aborted! Command /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ ruby -I"/Library/Ruby/Gems/1.8/gems/rsp...
2008 Dec 01
1
Undefined method "full_description" when trying to run "rake spec"
...gems/1.8/gems/rspec-1.1.11/lib/spec/example/example_methods.rb:26:in `execute'' ... 6 levels... from /usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:21:in `run'' from /usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:115:in `run_examples'' from /usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/command_line.rb:10:in `run'' from /usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/bin/spec:4 rake aborted! Any ideas about what this might be? Rspec gems are 1.1.11 and we also have the same gems installed in the app...
2007 Nov 26
0
rSpec (rev 2996), Rails (rev 8214): TextMate bundle problems
...vendor/plugins/rspec/lib/spec/runner/options.rb:202:in `each'' from /Users/Brad/dev/ws/fb3ws/test/bradtest/vendor/plugins/rspec/lib/spec/runner/options.rb:202:in `files_to_load'' from /Users/Brad/dev/ws/fb3ws/test/bradtest/vendor/plugins/rspec/lib/spec/runner/options.rb:81:in `run_examples'' from /Users/Brad/dev/ws/fb3ws/test/bradtest/vendor/plugins/rspec/lib/spec.rb:22:in `run'' from /Users/Brad/dev/ws/fb3ws/test/bradtest/vendor/plugins/rspec/lib/spec.rb:36 from /Users/Brad/dev/ws/fb3ws/test/bradtest/spec/models/tiger_spec.rb:5 RuntimeError: File or directo...
2007 Nov 20
3
How to test views with Nested Resources and Partials
...r'' spec/views/line_items/edit.haml_spec.rb:57 vendor/plugins/rspec/lib/spec/example/example_methods.rb:14:in `instance_eval'' vendor/plugins/rspec/lib/spec/example/example_methods.rb:14:in `run'' vendor/plugins/rspec/lib/spec/example/example_runner.rb:57:in `run_example'' vendor/plugins/rspec/lib/spec/example/example_runner.rb:23:in `run'' /usr/local/lib/ruby/1.8/timeout.rb:48:in `timeout'' vendor/plugins/rspec/lib/spec/example/example_runner.rb:21:in `run'' vendor/plugins/rspec/lib/spec/example/example_suite.rb:28:i...
2007 Oct 04
1
PUT- or POST-ing xml
...on_controller/test_process.rb:353:in > `put'' > ./spec/controllers/assign_role_to_users_spec.rb:42: > /usr/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/dsl/example.rb:81:in > `instance_eval'' > /usr/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/dsl/example.rb:81:in > `run_example'' > /usr/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/dsl/example.rb:26:in > `run'' > /usr/lib/ruby/1.8/timeout.rb:48:in `timeout'' > /usr/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/dsl/example.rb:24:in > `run'' > /usr/lib/ruby/gems/1.8/gems/rspec-1...
2007 Dec 12
3
undefined method: controller_name
...mple_group_runner.rb:13:in `each'' from /Users/alvin/workspace/eTriever-spec-tmp/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:13:in `load_files'' from /Users/alvin/workspace/eTriever-spec-tmp/vendor/plugins/rspec/lib/spec/runner/options.rb:83:in `run_examples'' from /Users/alvin/workspace/eTriever-spec-tmp/vendor/plugins/rspec/lib/spec/runner/command_line.rb:19:in `run'' from script/spec:4 Is there a better way to write this spec in 3136? Thanks, Alvin.
2009 Oct 08
0
autospec cannont find gems
...s/1.8/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:14:in `each'' C:/INSTAN~3.0-W/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:14:in `load_files'' C:/INSTAN~3.0-W/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/options.rb:132:in `run_examples'' C:/INSTAN~3.0-W/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/command_line.rb:9:in `run'' C:/INSTAN~3.0-W/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/bin/spec:5 no such file to load -- rspec-rails C:/INSTAN~3.0-W/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in...
2008 May 10
4
Problems running RSpec from w/in TextMate
...h/vendor/plugins/rspec/lib/spec/runner/options.rb:187:in `each'' from /Users/waynemolina/work/liberty_truth/vendor/plugins/rspec/lib/spec/runner/options.rb:187:in `files_to_load'' from /Users/waynemolina/work/liberty_truth/vendor/plugins/rspec/lib/spec/runner/options.rb:85:in `run_examples'' from /Users/waynemolina/work/liberty_truth/vendor/plugins/rspec/lib/spec.rb:20:in `run'' from /Users/waynemolina/work/liberty_truth/vendor/plugins/rspec/lib/spec/runner.rb:192:in `register_at_exit_hook'' from /Users/waynemolina/work/liberty_truth/spec/models/even...
2014 Nov 26
6
testing dontrun examples
Is there a good strategy for testing examples which should not be run by default? For instance, I have examples which get data from the Internet. If I wrap them in try() then they can be skipped if the Internet is not available, but may not be tested in cases when I would like to know about the failure. (Not to mention that the example syntax is ugly.) If I mark them \dontrun or \donttest
2012 Oct 26
8
Puppet 3.0 rspec and custom resources
...rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'' /home/nrhuff/.rvm/gems/ruby-1.8.7-p358/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'' /home/nrhuff/.rvm/gems/ruby-1.8.7-p358/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'' /home/nrhuff/.rvm/gems/ruby-1.8.7-p358/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'' /home/nrhuff/.rvm/gems/ruby-1.8.7-p358/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'' /home/nrhuff/.rvm/gems/ruby-1.8.7-p358/gems/r...
2009 Oct 23
0
The specified procedure could not be found - Init_win32api (LoadError)
.../gems/rspec-1.1.12/lib/spec/ runner/example_group_runner.rb:14:in `each'' from C:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/ runner/example_group_runner.rb:14:in `load_files'' from C:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/ runner/options.rb:94:in `run_examples'' from C:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/ runner/command_line.rb:9:in `run'' from C:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.12/bin/spec:4 from C:/ruby/bin/spec:19:in `load'' from C:/ruby/bin/spec:19 I have no idea why this...