Sha256: 962ed26ee61dd0a2957e97708e1724b8dd1beb8354247b8ca6d60afc4a331372
Contents?: true
Size: 702 Bytes
Versions: 14
Compression:
Stored size: 702 Bytes
Contents
require 'spec_helper' describe "users/edit" do fixtures :user_groups before(:each) do @user = assign(:user, stub_model(User, :username => "MyString" )) assign(:user_groups, UserGroup.all) assign(:libraries, Library.all) assign(:roles, Role.all) assign(:available_languages, Language.available_languages) view.stub(:current_user).and_return(User.find('admin')) end it "renders the edit user form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => users_path(@user), :method => "post" do assert_select "input#user_email", :name => "user[email]" end end end
Version data entries
14 entries across 14 versions & 1 rubygems