Sha256: d82a8eeab16262bbe2092625e4613247e958bbcfe15e09e3aba7e7da3d6440b0
Contents?: true
Size: 553 Bytes
Versions: 8
Compression:
Stored size: 553 Bytes
Contents
require 'spec_helper' describe "profiles/index" do fixtures :all before(:each) do assign(:profiles, Profile.page(1)) admin = User.find('enjuadmin') view.stub(:current_user).and_return(admin) @ability = EnjuLeaf::Ability.new(admin, '0.0.0.0') @ability.extend(CanCan::Ability) controller.stub(:current_ability) { @ability } 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
8 entries across 8 versions & 1 rubygems