Commit 1a2d9231 authored by Sean Arnold's avatar Sean Arnold

Fix specs after changes

parent 27eea3a5
...@@ -6,12 +6,12 @@ describe StatusPage::Storage do ...@@ -6,12 +6,12 @@ describe StatusPage::Storage do
describe '.details_path' do describe '.details_path' do
subject { described_class.details_path(123) } subject { described_class.details_path(123) }
it { is_expected.to eq('incident/123.json') } it { is_expected.to eq('data/incident/123.json') }
end end
describe '.list_path' do describe '.list_path' do
subject { described_class.list_path } subject { described_class.list_path }
it { is_expected.to eq('list.json') } it { is_expected.to eq('data/list.json') }
end end
end end
...@@ -19,7 +19,8 @@ describe StatusPage::IncidentEntity do ...@@ -19,7 +19,8 @@ describe StatusPage::IncidentEntity do
description: issue.description_html, description: issue.description_html,
updated_at: issue.updated_at, updated_at: issue.updated_at,
created_at: issue.created_at, created_at: issue.created_at,
comments: [] comments: [],
links: { details: "data/incident/#{issue.iid}.json" }
) )
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment