We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a9dd63 commit 50f261eCopy full SHA for 50f261e
spec/features/lesson/listing_lessons_spec.rb
@@ -40,6 +40,14 @@
40
expect(data.first[:user_name]).to eq('School Teacher')
41
end
42
43
+ it 'responds with the project JSON' do
44
+ get('/api/lessons', headers:)
45
+ data = JSON.parse(response.body, symbolize_names: true)
46
+ expected_project = JSON.parse(lesson.project.to_json(only: %i[identifier project_type]), symbolize_names: true)
47
+
48
+ expect(data.first[:project]).to eq(expected_project)
49
+ end
50
51
# rubocop:disable RSpec/ExampleLength
52
it "responds with nil attributes for the user if their user profile doesn't exist" do
53
user_id = SecureRandom.uuid
0 commit comments