Displaying 7 results from an estimated 7 matches for "example_methods".
2011 Aug 09
0
Devise, RSpec and Webrat
.../usr/lib/ruby/gems/1.8/gems/factory_girl-2.0.3/lib/factory_girl/
syntax/vintage.rb:53:in `default_strategy''
/usr/lib/ruby/gems/1.8/gems/factory_girl-2.0.3/lib/factory_girl/
syntax/vintage.rb:146:in `Factory''
spec/models/campaign_spec.rb:7
rspec (1.3.0) lib/spec/example/example_methods.rb:74:in
`instance_eval''
rspec (1.3.0) lib/spec/example/example_methods.rb:74:in
`eval_each_fail_fast''
rspec (1.3.0) lib/spec/example/example_methods.rb:74:in `each''
rspec (1.3.0) lib/spec/example/example_methods.rb:74:in
`eval_each_fail_fast''
rsp...
2007 Dec 07
4
strange error on mock proxy
...vendor/plugins/rspec_on_rails/lib/spec/rails/example/
view_example_group.rb:129:in `send''
vendor/plugins/rspec_on_rails/lib/spec/rails/example/
view_example_group.rb:129:in `render''
spec/views/units/new.html.erb_spec.rb:11
vendor/plugins/rspec/lib/spec/example/example_methods.rb:42:in
`instance_eval''
vendor/plugins/rspec/lib/spec/example/example_methods.rb:42:in
`eval_each_fail_fast''
vendor/plugins/rspec/lib/spec/example/example_methods.rb:41:in
`each''
vendor/plugins/rspec/lib/spec/example/example_methods.rb:41:in
`eval_...
2008 Jan 15
0
Problem with ruby-debug and rspec
...gems/1.8/gems/rspec-1.1.2/lib/spec/example/example_group_methods.rb:398:in
`__send__''
/opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.2/lib/spec/example/example_group_methods.rb:398:in
`add_method_examples''
/opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.2/lib/spec/example/example_methods.rb:78:in
`instance_eval''
/opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.2/lib/spec/example/example_methods.rb:78:in
`run_with_description_capturing''
/opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.2/lib/spec/example/example_methods.rb:19:in
`execute''
/opt...
2008 Aug 19
5
RSpec raising routing errors where Rails doesn''t?
Hopefully someone here can help me figure out why the ERB:
<% form_for(@fund, :url => {:host => PRIVATE_HOST}, :html => {:class
=> ''fund'', :multipart => true}) do |f| %>
raises an error in my specs:
No route matches {:action=>"index"}
but works fine in my app and generates the following, desired HTML:
<form
2008 Dec 01
1
Undefined method "full_description" when trying to run "rake spec"
...h''
from /usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/reporter.rb:120:in
`example_pending''
from /usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/reporter.rb:29:in
`example_finished''
from /usr/lib64/ruby/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/...
2007 Nov 20
3
How to test views with Nested Resources and Partials
...9;
vendor/plugins/rspec_on_rails/lib/spec/rails/example/behaviour/view_example.rb:129:in `send''
vendor/plugins/rspec_on_rails/lib/spec/rails/example/behaviour/view_example.rb:129:in `render''
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/loca...
2007 Dec 13
16
"Tricks" for testing after_create callback???
I''ve got a model Message, which needs to send an email using action
mailer after it''s first saved in the database.
I want to pass the model to the mailer which then uses methods on the
message model to render the email.
So the natural way to do this is in an after_create callback on the
Message model.
But I can''t see an easy way to test this. Here''s my spec