Sha256: 9753002a4557ef766e65e08e98459b0e8ef2c9158e099e85c22d299ed8a11c14

Contents?: true

Size: 695 Bytes

Versions: 5

Compression:

Stored size: 695 Bytes

Contents

require 'spec_helper'

describe "profiles/edit" do
  fixtures :all

  before(:each) do
    @profile = assign(:profile, profiles(:admin))
    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('enjuadmin'))
  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 => profiles_path(@profile), :method => "post" do
      assert_select "input#profile_user_number", :name => "profile[user_number]"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
enju_leaf-1.1.0.rc19 spec/views/profiles/edit.html.erb_spec.rb
enju_leaf-1.1.0.rc18 spec/views/profiles/edit.html.erb_spec.rb
enju_leaf-1.1.0.rc17 spec/views/profiles/edit.html.erb_spec.rb
enju_leaf-1.1.0.rc16 spec/views/profiles/edit.html.erb_spec.rb
enju_leaf-1.1.0.rc15 spec/views/profiles/edit.html.erb_spec.rb