[Rails] Re: DRY in rspec tests

2011-02-14 Thread S. Widmann
I will try that, thanks! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com.

[Rails] Re: DRY in rspec tests

2011-02-13 Thread Arailsdemo A.
You can include helper modules in your spec_helper file: RSpec.configure do |config| config.include MySpec::SessionsHelper, :type => :controller, :example_group => { :file_path => config.escaped_path(%w[spec controllers]) } end This will include the MySpec::SessionsHelper in all of