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 6012ae0 commit 58afc29Copy full SHA for 58afc29
spec/factories/exercise.rb
@@ -6,6 +6,8 @@
6
end
7
8
factory :exercise_with_single_java_main_file, class: 'Exercise' do
9
+ title 'Some Exercise'
10
+ description 'Very descriptive'
11
after(:create) do |exercise|
12
create(:single_java_main_file, exercise: exercise)
13
spec/models/exercise_spec.rb
@@ -15,7 +15,6 @@
15
}
16
17
it 'has single <p:description> tag which contains description' do
18
- print(xml)
19
descriptions = xml.xpath('p:task/p:description/text()')
20
expect(descriptions.size()).to be 1
21
expect(descriptions[0].content).to eq 'Very descriptive'
@@ -70,7 +69,6 @@
70
69
71
72
it 'has single /p:files/p:file tag' do
73
74
files = xml.xpath('p:task/p:files/p:file')
75
expect(files.size()).to be 1
76
0 commit comments