Skip to content

Commit

Permalink
Adding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukashlavacka committed Dec 6, 2023
1 parent 4eb5231 commit 9949b80
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion spec/dummy/app/models/user_event.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class UserEvent < ApplicationRecord
extend Eventsimple::Event

drives_events_for User, aggregate_id: :canonical_id, events_namespace: 'UserComponent::Events'
drives_events_for User, aggregate_id: :canonical_id, events_namespace: 'UserComponent::Events',
filter_attributes: [:username, :email]
end
1 change: 0 additions & 1 deletion spec/requests/eventsimple/home_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
expect(response).to have_http_status(:success)
expect(response.body).to include('Eventsimple')
expect(response.body).to include('User')
expect(response.body).to include('Choose event source model')
end
end
end
2 changes: 2 additions & 0 deletions spec/requests/eventsimple/models_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
expect(response.body).to include('Time')
expect(response.body).to include('Identifier')
expect(response.body).to include('Event')
expect(response.body).to include('Filter attribute')
expect(response.body).to include('username')
end
end
end

0 comments on commit 9949b80

Please sign in to comment.