Re: [rspec-users] Testing Signin for Admin_Employee

2012-02-26 Thread Zach Dennis
On Sat, Feb 25, 2012 at 9:25 AM, J. B. Rainsberger wrote: > On Thu, Feb 23, 2012 at 22:45, Justin Ko wrote: > >> Hello, what you want is "shared examples/context": >> https://gist.github.com/1894922 > > I commented there, too. I commented there as well. -- @zachdennis http://www.continuousthink

Re: [rspec-users] Testing Signin for Admin_Employee

2012-02-25 Thread J. B. Rainsberger
On Thu, Feb 23, 2012 at 22:45, Justin Ko wrote: > Hello, what you want is "shared examples/context": > https://gist.github.com/1894922 I commented there, too. -- J. B. (Joe) Rainsberger :: http://www.jbrains.ca :: http://blog.thecodewhisperer.com Author, JUnit Recipes Free Your Mind to Do Great

Re: [rspec-users] Testing Signin for Admin_Employee

2012-02-23 Thread Justin Ko
On Feb 23, 2012, at 9:32 AM, Tom Tom wrote: > I am following railstutorial 2nd edition and in it we have a Signin test > in our integration tests as follows: > > require 'spec_helper' > > describe "Authentication" do > >subject { page } > > describe "signin" do > before { visi

[rspec-users] Testing Signin for Admin_Employee

2012-02-23 Thread Tom Tom
I am following railstutorial 2nd edition and in it we have a Signin test in our integration tests as follows: require 'spec_helper' describe "Authentication" do subject { page } describe "signin" do before { visit signin_path } it { should have_selector('h2', tex