Skip to content

Commit

Permalink
Fix UI specs
Browse files Browse the repository at this point in the history
After changing how tree is displayed in the UI, it's no longer pure
json (but something more readable).

Issue: #336
  • Loading branch information
swistak35 committed Aug 8, 2018
1 parent 7ada35b commit 742a08b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rails_event_store-browser/spec/ui_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ module RailsEventStore

within('.event__body') do
expect(page).to have_content(foo_bar_event.event_id)
expect(page).to have_content(%Q[{ "timestamp": "#{foo_bar_event.metadata[:timestamp].as_json}" ])
expect(page).to have_content(%Q[{ "foo": "bar" }])
expect(page).to have_content(%Q[timestamp: "#{foo_bar_event.metadata[:timestamp].as_json}" ])
expect(page).to have_content(%Q[foo: "bar"])
end
end

Expand All @@ -43,8 +43,8 @@ module RailsEventStore

within('.event__body') do
expect(page).to have_content(foo_bar_event.event_id)
expect(page).to have_content(%Q[{ "timestamp": "#{foo_bar_event.metadata[:timestamp].as_json}" ])
expect(page).to have_content(%Q[{ "foo": "bar" }])
expect(page).to have_content(%Q[timestamp: "#{foo_bar_event.metadata[:timestamp].as_json}"])
expect(page).to have_content(%Q[foo: "bar"])
end
end

Expand Down

0 comments on commit 742a08b

Please sign in to comment.