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

Version Path
trusty-snippets-extension-3.0.1 spec/models/user_action_observer_spec.rb
trusty-snippets-extension-3.1.1 spec/models/user_action_observer_spec.rb
trusty-snippets-extension-3.1.0 spec/models/user_action_observer_spec.rb
trusty-snippets-extension-3.0.0 spec/models/user_action_observer_spec.rb
trusty-snippets-extension-2.0.7 spec/models/user_action_observer_spec.rb
trusty-snippets-extension-2.0.6 spec/models/user_action_observer_spec.rb
trusty-snippets-extension-2.0.5 spec/models/user_action_observer_spec.rb
trusty-snippets-extension-2.0.4 spec/models/user_action_observer_spec.rb
trusty-snippets-extension-2.0.3 spec/models/user_action_observer_spec.rb
trusty-snippets-extension-2.0.2.pre.beta spec/models/user_action_observer_spec.rb