From 32f104aec72020d73ffcd3c6c68c32fc7320abff Mon Sep 17 00:00:00 2001 From: uu59 Date: Mon, 30 Jun 2014 14:37:52 +0900 Subject: [PATCH] Following behavior change on spec --- spec/features/sessions_spec.rb | 4 ++-- spec/models/fluentd/agent_spec.rb | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/features/sessions_spec.rb b/spec/features/sessions_spec.rb index 902fd73..00364ba 100644 --- a/spec/features/sessions_spec.rb +++ b/spec/features/sessions_spec.rb @@ -14,8 +14,8 @@ describe "sessions" do context "sign in with exists user" do let(:user) { exists_user } - it "login success, then redirect to root_path" do - current_path.should == root_path + it "login success, then redirect to root_path, and redirect_to fluentd_path from root_path" do + current_path.should == fluentd_path end end diff --git a/spec/models/fluentd/agent_spec.rb b/spec/models/fluentd/agent_spec.rb index d599060..7546a00 100644 --- a/spec/models/fluentd/agent_spec.rb +++ b/spec/models/fluentd/agent_spec.rb @@ -59,12 +59,12 @@ describe Fluentd::Agent do end it "contain stack trace" do - subject[0].join.should include("") + subject[0][:subject].should include("Address already in use - bind(2)") end it "newer(bottom) is first" do - one = Time.parse(subject[0].first) - two = Time.parse(subject[1].first) + one = Time.parse(subject[0][:subject]) + two = Time.parse(subject[1][:subject]) one.should >= two end end