From 8334ccf8f7219ca11a540efd2e5105252c2b7aba Mon Sep 17 00:00:00 2001 From: YOSHIDA Hiroki Date: Sat, 11 Jan 2014 06:55:03 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=81=8C=E9=80=9A?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/controllers/home_controller_spec.rb | 30 ++---------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/spec/controllers/home_controller_spec.rb b/spec/controllers/home_controller_spec.rb index 367fea1..a85cc32 100644 --- a/spec/controllers/home_controller_spec.rb +++ b/spec/controllers/home_controller_spec.rb @@ -8,37 +8,11 @@ describe "GET 'index'" do subject { get :index } - - context "未ログインの場合" do - it "ゲスト向けのページが描画されること" do - expect(subject).to render_template(:guest) - end - end - - context "ログイン済みの場合" do - before_sign_in - - it "ログインユーザー向けのページが描画されること" do - expect(subject).to render_template(:index) - end - end + it { should render_template(:index) } end describe "GET 'bookmarklet'" do subject { get :bookmarklet } - - context "未ログインの場合" do - it "ゲスト向けのページが描画されること" do - expect(subject).to render_template(:guest) - end - end - - context "ログイン済みの場合" do - before_sign_in - - it "ブックマークレットのページが描画されること" do - expect(subject).to render_template(:bookmarklet) - end - end + it { should render_template(:bookmarklet) } end end