spec/views/page/index.html.erb_spec.rb in enju_leaf-1.1.4 vs spec/views/page/index.html.erb_spec.rb in enju_leaf-1.2.0.beta.1

- old
+ new

@@ -4,13 +4,10 @@ describe "page/index" do fixtures :all before(:each) do assign(:tags, Tag.all) - view.stub(:current_user).and_return(User.find('enjuadmin')) - @ability = Object.new - @ability.extend(CanCan::Ability) - controller.stub(:current_ability) { @ability } + view.stub(:current_user).and_return(User.friendly.find('enjuadmin')) end it "renders attributes in <p>" do render # Run the generator again with the --webrat flag if you want to use webrat matchers