asciinema.org/spec/views/users/new.html.erb_spec.rb

17 lines
311 B
Ruby
Raw Normal View History

2012-03-06 22:18:15 +00:00
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\[avatar_url\]/
end
end