17 lines
306 B
Ruby
17 lines
306 B
Ruby
require 'spec_helper'
|
|
|
|
describe "users/new" do
|
|
let(:user) { FactoryGirl.build(:user) }
|
|
|
|
before do
|
|
assign(:user, user)
|
|
end
|
|
|
|
it "renders form with attr" do
|
|
render
|
|
rendered.should =~ /user\[nickname\]/
|
|
rendered.should =~ /user\[name\]/
|
|
rendered.should =~ /user\[email\]/
|
|
end
|
|
end
|