Displaying 4 results from an estimated 4 matches for "evalmodule".
2007 May 15
3
nested blocks
...ot; do
before(:all) do
@collections_to_populate = :bars
end
before(:each) do
@obj = Foo.new
end
it_should_populate_collections "on a save failure" do
@obj.should_receive(:save)
post @action
end
end
#Error
undefined method `post'' for #<Spec::DSL::EvalModule:0xb6e7b2e0>
2007 Jun 21
9
it_should_behave_like
...have_like, and something seems to be wonky
with the syntax. When I add :shared=>true, the DSL complains that the next
line is the fixture declaration:
/vendor/plugins/rspec/lib/spec/dsl/behaviour_eval.rb:137:in
`method_missing'': undefined method `fixtures'' for
#<Spec::DSL::EvalModule:0x324a2cc> (NoMethodError)
Here''s the spec http://pastie.caboo.se/72287
Am I using it_should_behave_like properly? Am I making a separate mistake?
I have RSpec setup as a svn external (currently rev2101).
Thanks,
Jordan
http://jordan.mckible.com
-------------- next part ------------...
2007 Apr 25
9
Running specs for a plugin - undefined method ''define'' for object
...})
-> 0.0074s
-- initialize_schema_information()
-> 0.0005s
-- columns("schema_info")
-> 0.0005s
/Users/jeff/Sites/niche/audit_fu/vendor/plugins/rspec/lib/spec/dsl/behaviour_eval.rb:62:in
`method_missing'': undefined method `fixtures'' for
#<Spec::DSL::EvalModule:0x215f8a4> (NoMethodError)
from ./vendor/plugins/audit_fu/spec/audit_fu_spec.rb:4
from
/Users/jeff/Sites/niche/audit_fu/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:26:in
`class_eval''
from
/Users/jeff/Sites/niche/audit_fu/vendor/plugins/rspec/lib/spec/dsl/behav...
2007 Apr 28
7
[ rspec-Patches-9605 ] Patch for ER 9472, shared behaviour
...like the use of the global, behavior_runner, in Behavior to find shared behaviors. Putting the collection on Spec::Runner seemed just as bad.
>
>
>
> Had to move some methods on module Spec::DSL::BehaviourEval::ModuleMethods from private to protected to faciliate copying things from one EvalModule to another.
>
>
>
> There are many combinations of include, setup/teardown, context_setup/context_teardown and inherit that are not covered in the shared_behavior spec. Let me know if you want more. Might be a good place for shared behaviors!
>
>
>
> -Bob
>
> --------...