Skip to content

Commit

Permalink
Improve activerecord test
Browse files Browse the repository at this point in the history
  • Loading branch information
exAspArk committed Jan 15, 2016
1 parent 6c88bbf commit be30bfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/activerecord_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def establish_connection
widget.update_attributes title: "hello"
end
ActiveRecord::Base.transaction do
widget.update_attributes(title: 'hey')
raise ActiveRecord::Rollback
end
end
Expand Down

0 comments on commit be30bfb

Please sign in to comment.