Sha256: 84610c6410aa105b122b3fb6ea8d77a442b215d884cd78ca45fe455189a0f6ed
Contents?: true
Size: 587 Bytes
Versions: 13
Compression:
Stored size: 587 Bytes
Contents
require 'spec_helper' describe "profiles/index" do fixtures :all before(:each) do assign(:profiles, Profile.page(1)) admin = User.friendly.find('enjuadmin') view.stub(:current_user).and_return(admin) view.stub(:params).and_return(ActionController::Parameters.new) end it "renders a list of profiles" do allow(view).to receive(:policy).and_return double(create?: true, update?: true, destroy?: true) 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
13 entries across 12 versions & 2 rubygems