Following behavior change on spec

This commit is contained in:
uu59 2014-06-30 14:37:52 +09:00
parent effd33e52d
commit 32f104aec7
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -59,12 +59,12 @@ describe Fluentd::Agent do
end
it "contain stack trace" do
subject[0].join.should include("<top (required)>")
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