Displaying 2 results from an estimated 2 matches for "shared_example".
Did you mean:
shared_examples
2010 Mar 18
1
shared_example can't have the same name even if defined it different specs
...hub.com/336898
Using these files RSpec will give an error that ''User'' is already
registered as a shared group, even though they are defined in separate
files and example groups.
Is it suppose to behave that way? Seems like a hassle to have to
prepend the controller name to each shared_example_for.
2011 Aug 05
5
named context or calling include_context with block?
Hello,
I''m playing around with Rspec again after going from test/unit to
rspec then back to test/unit... :) Right off the bat, I find myself
wanting to do something like this: https://gist.github.com/1128091
Basically, I want to name a context, then call it later by name,
passing a block to it.
Or in other words... what is the best way to DRY this code?