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