From f0a11f02555666011ce16a813325fafcd20a0fd4 Mon Sep 17 00:00:00 2001 From: Yuki Nishijima Date: Thu, 8 May 2014 21:23:30 -0700 Subject: [PATCH] Move template to spec/fake_app/views I believe this template has been added for testing reasons, so I just moved it to spec/fake_app/views. --- .../fake_app/views/alternative/kaminari/_paginator.html.erb | 0 spec/helpers/action_view_extension_spec.rb | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) rename app/views/alternative/kaminari/_paginator.erb => spec/fake_app/views/alternative/kaminari/_paginator.html.erb (100%) diff --git a/app/views/alternative/kaminari/_paginator.erb b/spec/fake_app/views/alternative/kaminari/_paginator.html.erb similarity index 100% rename from app/views/alternative/kaminari/_paginator.erb rename to spec/fake_app/views/alternative/kaminari/_paginator.html.erb diff --git a/spec/helpers/action_view_extension_spec.rb b/spec/helpers/action_view_extension_spec.rb index 05c2201..99ab041 100644 --- a/spec/helpers/action_view_extension_spec.rb +++ b/spec/helpers/action_view_extension_spec.rb @@ -16,7 +16,8 @@ describe 'Kaminari::ActionViewExtension', :if => defined?(Rails) do end end - context 'accepts :view_prefixes option' do + context 'accepts :view_prefix option' do + before { helper.controller.append_view_path "spec/fake_app/views" } subject { helper.paginate @users, :views_prefix => "alternative/" } it { should eq("

1

") } end