Sha256: a8e0137c5faf215887d0fa0cc5bbb51847a6675f1205ee05707685be2b6b721d

Contents?: true

Size: 716 Bytes

Versions: 15

Compression:

Stored size: 716 Bytes

Contents

require 'spec_helper'

describe "profiles/new" do
  fixtures :user_groups

  before(:each) do
    assign(:profile, stub_model(Profile,
      :user_group_id => 1
    ).as_new_record)
    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 new 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, method: "post" do
      assert_select "input#profile_user_number", name: "profile[user_number]"
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
enju_seed-0.2.0.beta.5 spec/views/profiles/new.html.erb_spec.rb
enju_seed-0.2.0.beta.4 spec/views/profiles/new.html.erb_spec.rb
enju_seed-0.2.0.beta.3 spec/views/profiles/new.html.erb_spec.rb
enju_seed-0.2.0.beta.2 spec/views/profiles/new.html.erb_spec.rb
enju_leaf-1.2.0.beta.1 spec/views/profiles/new.html.erb_spec.rb
enju_leaf-1.1.4 spec/views/profiles/new.html.erb_spec.rb
enju_leaf-1.1.3 spec/views/profiles/new.html.erb_spec.rb
enju_leaf-1.1.2 spec/views/profiles/new.html.erb_spec.rb
enju_leaf-1.1.1 spec/views/profiles/new.html.erb_spec.rb
enju_leaf-1.1.0 spec/views/profiles/new.html.erb_spec.rb
enju_leaf-1.1.0.rc22 spec/views/profiles/new.html.erb_spec.rb
enju_leaf-1.1.0.rc21 spec/views/profiles/new.html.erb_spec.rb
enju_leaf-1.1.0.rc20 spec/views/profiles/new.html.erb_spec.rb
enju_leaf-1.1.0.rc19 spec/views/profiles/new.html.erb_spec.rb
enju_leaf-1.1.0.rc18 spec/views/profiles/new.html.erb_spec.rb