Displaying 1 result from an estimated 1 matches for "xxx_spec".
Did you mean:
vmx_spec
2007 May 10
12
shared descriptions -- a couple of issues
...ec on a directory,
I get the error:
Shared Behaviour ''foo'' already exists (ArgumentError)
It appears that there are no protections against pulling in the file
multiple times. I''ve worked around this in rails for now by naming
the shared file XXX_shared.rb instead of XXX_spec.rb so that the rake
task doesn''t pick it up, but it seems like something that should be
fixed.
To reproduce, create the following files:
a_spec.rb
---------
describe "shared", :shared => true do
it "should do something" do
end
end
b_spec.rb
---------
require...