0

this code

describe "HomePages" do
    subject {page}
    before { visit root_path }

    describe "navigation" do
        describe "click signup" do
            before {find_button('Sign up').click}
            current_path.should == sign_up_path
        end

    end
end

Gives me this error

#<NameError: undefined local variable or methodcurrent_path' for #>`

I'm using capybara version 1.1.2

What am I doing wrong?

4

1 に答える 1

0

それらを記述ブロックに移動したところ、機能しました。

于 2013-05-24T15:30:42.513 に答える