Re: [rspec-users] View specs - best practices

2011-01-10 Thread Evgeniy Dolzhenko
+1, interested in the solution as well. We have the same issue with controller specs/Shoulda, e.g.: describe 'GET google_apps (with invalid credentials)' do before do ... get :google_apps end it { should respond_with(:ok) } it { should render_template("sessions/new

[rspec-users] View specs - best practices

2011-01-09 Thread Jason N.
Howdy, I'm trying to test some mailer views (which is no different to normal views in terms of specs)... ran into the following problem... In adherence to the "one expectation per 'spec'"... I'm trying to write the following describe "auth/mailer/signup.html.erb" do before(:each) do @us