Core::Helper
Created by: printercu
Hi!
When there are a lot of helpers all of them need to be repeated in rails_helper.rb
/spec_helper.rb
:
config.include SpecHelper::One
config.include SpecHelper::Other type: :smth
config.extend SpecHelper::Another
# ...
I think it would be great if we could define this actions right inside helper and don't modify spec_helper
all the time. Like this:
module SpecHelper::One
extend RSpec::Core::Helper
register_helper :include, type: :smth
# ...
end
Here is working implementation, but there are no test. I'll add them, if you like an idea. wdyt?