Re: [rspec-users] Can someone clarify this RSpec block?

2012-02-23 Thread Justin Ko
On Feb 23, 2012, at 4:38 PM, Mohamad El-Husseini wrote: > I'm new to RSpec, Rails, and Ruby. I'm following the Rails Tutorial. I was > going over some RSpec code and go wanted some clarification: > > describe "User pages" do > subject { page } > > describe "sign up" do > describe "

[rspec-users] Can someone clarify this RSpec block?

2012-02-23 Thread Mohamad El-Husseini
I'm new to RSpec, Rails, and Ruby. I'm following the Rails Tutorial. I was going over some RSpec code and go wanted some clarification: describe "User pages" do subject { page } describe "sign up" do describe "with valid information" do before do fill_in "Name", with: "

Re: [rspec-users] testing around_save

2012-02-23 Thread David Chelimsky
On Feb 23, 2012, at 3:36 PM, apneadiving wrote: > I've just upgraded to Rails 3.2.1 and I can't get my specs checking > whether or not around_save work anymore. What version did you upgrade from? Anything else change in the process? > I simply did something like: > > object.should_receive :arou

[rspec-users] testing around_save

2012-02-23 Thread apneadiving
I've just upgraded to Rails 3.2.1 and I can't get my specs checking whether or not around_save work anymore. I simply did something like: object.should_receive :around_filter_name object.save.should be_true (Actually, it was slightly more complex, it's part of a state machine) __

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