Sha256: 1b933a087b865301c713b52fac4522c467d3bb7cc894af8302c93df0ef6f1801

Contents?: true

Size: 392 Bytes

Versions: 5

Compression:

Stored size: 392 Bytes

Contents

require 'spec_helper'

describe "profiles/index" do
  fixtures :all

  before(:each) do
    assign(:profiles, Profile.page(1))
    view.stub(:current_user).and_return(User.find('enjuadmin'))
  end

  it "renders a list of profiles" do
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "tr>td", :text => 'enjuadmin'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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