Displaying 19 results from an estimated 19 matches for "behaviour_runner".
2007 Apr 25
9
Running specs for a plugin - undefined method ''define'' for object
...a_information()
-> 0.0006s
-- columns("schema_info")
-> 0.0005s
./vendor/plugins/audit_fu/spec/audit_fu_spec.rb:3: undefined method `define''
for #<Object:0x1f69f4> (NoMethodError)
from
/Users/jeff/Sites/niche/audit_fu/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:85:in
`load''
from
/Users/jeff/Sites/niche/audit_fu/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:85:in
`load_specs''
from
/Users/jeff/Sites/niche/audit_fu/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:84:in
`each''
from
/User...
2007 Nov 28
6
Newbie question
...-1.0.8...
$ spec -v
RSpec-1.0.8 (r2338) - BDD for Ruby
http://rspec.rubyforge.org/
$ cat acct.rb
describe Account, " when first created" do
it "should have a balance of $0" do
...
end
end
$ spec acct.rb
/opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/runner/
behaviour_runner.rb:106:in `load'': ./acct.rb:3: syntax error,
unexpected tDOT3 (SyntaxError)
from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/
runner/behaviour_runner.rb:106:in `load_specs''
from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/
runner/behavio...
2007 May 18
1
problems with textmate and rspec bundle
.../1.8/rubygems/custom_require.rb:27:in
`gem_original_require'': no such file to load -- game (LoadError) from
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in
`require'' from ./rspec/game_spec.rb:1 from
/opt/local/lib/ruby/gems/1.8/gems/rspec-0.9.4/lib/spec/runner/behaviour_runner.rb:85:in
`load'' from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.9.4/lib/spec/runner/behaviour_runner.rb:85:in
`load_specs'' from
/opt/local/lib/ruby/gems/1.8/gems/rspec-0.9.4/lib/spec/runner/behaviour_runner.rb:84:in
`each'' from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.9.4...
2007 Oct 04
1
PUT- or POST-ing xml
.../dsl/behaviour.rb:81:in
> `run''
> /usr/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/dsl/behaviour.rb:75:in
> `each''
> /usr/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/dsl/behaviour.rb:75:in
> `run''
> /usr/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/runner/behaviour_runner.rb:58:in
> `run_behaviours''
> /usr/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/runner/behaviour_runner.rb:57:in
> `each''
> /usr/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/runner/behaviour_runner.rb:57:in
> `run_behaviours''
> /usr/lib/ruby/gems/1.8/gems/...
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 Oct 05
9
I can''t make RSpec 1.0.8 run in Rails 1.2.3
I followed the directions on the site:
ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec
ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/REL_1_0_8/rspec_on_rails
ruby script/generate rspec
And apparently everything was ok. But when I do a "rake spec" on the app folder none of the Rails models are visible. Here is the error:
(in
2007 May 10
12
shared descriptions -- a couple of issues
...lib/spec/
runner/extensions/kernel.rb:4:in `describe''
from ./a_spec.rb:1
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:21:in `require''
from ./b_spec.rb:1
from /usr/local/lib/ruby/gems/1.8/gems/rspec-0.9.3/lib/spec/
runner/behaviour_runner.rb:85:in `load_specs''
from /usr/local/lib/ruby/gems/1.8/gems/rspec-0.9.3/lib/spec/
runner/behaviour_runner.rb:84:in `load_specs''
from /usr/local/lib/ruby/gems/1.8/gems/rspec-0.9.3/lib/spec/
runner/behaviour_runner.rb:22:in `run''
from /usr/loca...
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.
2007 Jun 21
3
Sqlite3, in-memory db and rspec_server
Hi everyone.
I can''t get the above(subject line) combination to work. If I use a
standard sqlite3 file db for the test db, and spec_server all the
specs on my models pass. If I use an in-memory db for the test db,
script/spec w/o spec_server, they all pass. But if I use in-memory and
spec_server I get the following error:
1)
ActiveRecord::StatementInvalid in ''User should be
2007 May 04
6
Rspec on Merb Plugin - Initial thoughts?
A couple days ago I submitted a patch, that was committed by Ezra, to the
MrBlog project for the Rspec on Merb plugin.
So far, it only works with ActiveRecord including fixtures.
Has any played with it? If so, did you get it to work?
I''m going to be submitting a patch for Controller specs soon. It will be
very bare bones, given my current lack of understanding of Merb controller
2007 Sep 10
6
RSpec view spec writing problem (unable to generate url_for in RESTful resource link_to)
...ndor/plugins/rspec/lib/spec/dsl/example.rb:24:in
`run''
C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:81:in
`run''
C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:75:in
`run''
C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:58:in
`run_behaviours''
C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:57:in
`run_behaviours''
C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:21:in
`run''
C:/dev/svn/sherpa/vendor/plugins/rspec/lib/spec/runner/com...
2007 Jul 14
8
Specing Layouts
Hi,
I''ve just started to try and spec my application.html.erb layout as one of
the view specs but it totally barfs.
I''m guessing that it''s due to the yield statements in the layout.
Any clues as to how to proceed?
Cheers
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 May 31
16
Could anyone please help with rspec/nested resource behavior checking?
My problem has been listed here:
http://railsforum.com/viewtopic.php?pid=25439#p25439
Don''t think it would be required to completely re-type it here :)
Thanks!
--
-Daniel Fischer
http://danielfischer.com - Geek Blog
http://abigfisch.com - Portfolio
http://writersbeat.com - Writing Community
2007 Nov 20
3
How to test views with Nested Resources and Partials
...9;
vendor/plugins/rspec/lib/spec/example/example_suite.rb:24:in `each''
vendor/plugins/rspec/lib/spec/example/example_suite.rb:24:in
`rspec_run''
vendor/plugins/rspec/lib/spec/extensions/test/unit/example_suite.rb:7:in
`run''
vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:22:in `run''
vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:21:in
`each''
vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:21:in `run''
vendor/plugins/rspec/lib/spec/runner/options.rb:77:in `run_examples''
vendor/plugins/rspec/lib...
2007 Dec 11
3
Fresh rspec on rails install blows up
...tive_support/dependencies.rb:342:in
`new_constants_in''
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in
`require''
... 47 levels...
from
/usr/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/runner/behaviour_runner.rb:19:in
`run''
from
/usr/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/runner/command_line.rb:17:in
`run''
from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/bin/spec:3
from /usr/local/bin/spec:16
Regards,
Keith
2007 Sep 04
7
1.05 to 1.08
Hi
We are looking at moving a project over from 1.05 to 1.08 but have a
problem with some of our helper specs
They work fine in 1.05 but error in 1.08 and it is the calls to route
helper methods that seems to be the problem.
I did some playing around .. because the code being tested is
reasonably large etc ... but this sample (using the peepcode app)
seems to boil down the problem
2007 Nov 07
1
LoadError when upgraded to latest rspec trunk
.../trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:496:in
`require''
from
/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?...
2007 Oct 10
2
RSpec seems to be having a hard time loading Helper classes
....4.2/lib/active_support/dependencies.rb:342:in
`new_constants_in''
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in
`load''
from
/Users/chrisolsen/Projects/Rails/chrisolsen/trunk/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:106:in
`load_specs''
... 14 levels...
from
/Users/chrisolsen/Projects/Rails/chrisolsen/trunk/vendor/plugins/rspec/lib/spec/runner/option_parser.rb:155:in
`parse''
from
/Users/chrisolsen/Projects/Rails/chrisolsen/trunk/vendor/plugins/rspec/lib/spec/runner/...
2007 Jul 26
5
Coding standards and whitespace
...ks/mock.rb
rspec/lib/spec/mocks/order_group.rb
rspec/lib/spec/mocks/proxy.rb
rspec/lib/spec/mocks/space.rb
rspec/lib/spec/mocks/spec_methods.rb
rspec/lib/spec/mocks.rb
rspec/lib/spec/rake/spectask.rb
rspec/lib/spec/rake/verify_rcov.rb
rspec/lib/spec/runner/backtrace_tweaker.rb
rspec/lib/spec/runner/behaviour_runner.rb
rspec/lib/spec/runner/command_line.rb
rspec/lib/spec/runner/extensions/kernel.rb
rspec/lib/spec/runner/extensions/object.rb
rspec/lib/spec/runner/formatter/base_formatter.rb
rspec/lib/spec/runner/formatter/base_text_formatter.rb
rspec/lib/spec/runner/formatter/failing_behaviours_formatter.rb
rsp...