spec/views/page/statistics.html.erb_spec.rb in enju_leaf-1.2.0.beta.2 vs spec/views/page/statistics.html.erb_spec.rb in enju_leaf-1.2.0.beta.3

- old
+ new

@@ -1,17 +1,16 @@ -# -*- encoding: utf-8 -*- -require 'spec_helper' +require 'rails_helper' describe "page/statistics" do fixtures :all before(:each) do @profile = assign(:profile, profiles(:admin)) - view.stub(:current_user).and_return(User.find('enjuadmin')) + 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 - rendered.should match(/Checkout/) + rendered.should match(/Statistics/) end end