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 "
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: "
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
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)
__
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
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