Skip to content

Commit

Permalink
ci debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
fatkodima committed Apr 10, 2018
1 parent 072ec46 commit 2890ca2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/audited/auditor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def non_column_attr=(val)
end

describe "on create" do
let( :user ) { create_user(status: :reliable, audit_comment: "Create") }
let( :user ) { create_user status: :reliable, audit_comment: "Create" }

it "should change the audit count" do
expect {
Expand All @@ -273,6 +273,7 @@ def non_column_attr=(val)
end

it "should store enum value" do
puts user.audits.first.inspect
expect(user.audits.first.audited_changes["status"]).to eq(1)
end

Expand Down Expand Up @@ -386,6 +387,8 @@ def non_column_attr=(val)

it "should store enum value" do
@user.destroy
puts @user.audits.first.inspect

expect(@user.audits.last.audited_changes["status"]).to eq(0)
end

Expand Down

0 comments on commit 2890ca2

Please sign in to comment.