Sha256: 67ba96d32e8e2c80654305a4f2ebd0b3f121d2c4e6e66aa4fa3983ece0e7c630
Contents?: true
Size: 593 Bytes
Versions: 10
Compression:
Stored size: 593 Bytes
Contents
# # require 'rails_helper' # # describe UserActionObserver do # dataset :users, :pages_with_layouts, :snippets # # before(:each) do # @user = users(:existing) # UserActionObserver.current_user = @user # end # # it 'should observe create' do # snippet = Snippet.create!(snippet_params) # snippet.created_by.should == @user # end # # it 'should observe update' do # [ # snippets(:first) # ].each do |model| # model.attributes = model.attributes.dup # model.save.should == true # model.updated_by.should == @user # end # end # end
Version data entries
10 entries across 10 versions & 1 rubygems