このコミットが含まれているのは:
2026-06-07 02:50:04 +09:00
コミット 546a212e74
5個のファイルの変更319行の追加2行の削除
+7
ファイルの表示
@@ -27,5 +27,12 @@ RSpec.describe 'TheatreProgrammes', type: :request do
expect(json.map { _1.dig('post', 'title') }).to eq(['second', 'first'])
expect(json.first['post']).to include('id' => post_2.id, 'url' => post_2.url)
end
it 'filters programmes by position_gt' do
get "/theatres/#{theatre.id}/programmes", params: { position_gt: 1 }
expect(response).to have_http_status(:ok)
expect(json.map { _1['position'] }).to eq([2])
end
end
end