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

Re: [rspec-users] View Specs

2010-12-24 Thread David Chelimsky
On Wed, Dec 22, 2010 at 12:58 PM, Daryn wrote: > Hi, > > I was using WebRat and I had view specs that looked like this: > > describe "expenses/new.html.erb" do >  it "displays 'New Expense'" do >    render >    rendered.should include("New Expense") >  end > end > > I am now using Capybara and you

Re: [rspec-users] View Specs vs. Stories

2008-05-23 Thread Josh Knowles
On 5/23/08, Mark Dodwell <[EMAIL PROTECTED]> wrote: > Do RSpec stories make view specs redundant? Does anybody spec their > views *and* use stories, and if so how? > > Any views (no pun intended) appreciated. Our team has been talking a lot about this subject recently as we made a decision at th

Re: [rspec-users] View Specs vs. Stories

2008-05-23 Thread Pat Maddox
On Fri, May 23, 2008 at 12:58 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On May 23, 2008, at 2:54 PM, Pat Maddox wrote: > >> On Fri, May 23, 2008 at 12:34 PM, Mark Dodwell <[EMAIL PROTECTED]> >> wrote: >>> >>> Thanks for the comments. >>> >>> This might be more obvious, but what about rails i

Re: [rspec-users] View Specs vs. Stories

2008-05-23 Thread Ashley Moran
On 23 May 2008, at 20:48, David Chelimsky wrote: RailsStory (in RSpec) wraps rails integration tests. So not only redundant, but the same thing and repetitive all at the same deja-vu- all-over-again moment! Is there a Don't Deja-vu Yourself principle we should be following? :) -- http://ww

Re: [rspec-users] View Specs vs. Stories

2008-05-23 Thread David Chelimsky
On May 23, 2008, at 2:54 PM, Pat Maddox wrote: On Fri, May 23, 2008 at 12:34 PM, Mark Dodwell <[EMAIL PROTECTED] forum.com> wrote: Thanks for the comments. This might be more obvious, but what about rails integration tests -- presumably RSpec stories make these redundant for sure? Yeah, stor

Re: [rspec-users] View Specs vs. Stories

2008-05-23 Thread David Chelimsky
On May 23, 2008, at 2:34 PM, Mark Dodwell wrote: Thanks for the comments. This might be more obvious, but what about rails integration tests -- presumably RSpec stories make these redundant for sure? RailsStory (in RSpec) wraps rails integration tests. So not only redundant, but the same t

Re: [rspec-users] View Specs vs. Stories

2008-05-23 Thread Pat Maddox
On Fri, May 23, 2008 at 12:34 PM, Mark Dodwell <[EMAIL PROTECTED]> wrote: > Thanks for the comments. > > This might be more obvious, but what about rails integration tests -- > presumably RSpec stories make these redundant for sure? Yeah, stories can serve the same role as integration tests. Pat

Re: [rspec-users] View Specs vs. Stories

2008-05-23 Thread Mark Dodwell
Thanks for the comments. This might be more obvious, but what about rails integration tests -- presumably RSpec stories make these redundant for sure? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org htt

Re: [rspec-users] View Specs vs. Stories

2008-05-23 Thread Ashley Moran
On 23 May 2008, at 19:27, Pat Maddox wrote: Not necessarily. You might test one or two paths through stories, and unit test remaining branches in your views. I'll go with this. I stopped writing view specs but I can see you could get in a situation where you have more permutations in a vi

Re: [rspec-users] View Specs vs. Stories

2008-05-23 Thread Pat Maddox
On 5/23/08, Mark Dodwell <[EMAIL PROTECTED]> wrote: > Do RSpec stories make view specs redundant? Does anybody spec their > views *and* use stories, and if so how? > > Any views (no pun intended) appreciated. > > ~ Thanks > > Mark > -- > Posted via http://www.ruby-forum.com/. >

Re: [rspec-users] View Specs vs. Stories

2008-05-23 Thread Mark Dodwell
Mark Dodwell wrote: > Do RSpec stories make view specs redundant? Sorry I should clarify that I'm talking about Rails view specs specifically here. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http: