File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 28
28
xml = @helper . create_job_xml
29
29
job = "#{ @job_name_prefix } _#{ num } "
30
30
@job_name = job if num == 0
31
- @client . job . create ( job , xml ) . to_i . should == 200
31
+ expect ( @client . job . create ( job , xml ) . to_i ) . to eq ( 200 )
32
32
end
33
33
rescue Exception => e
34
34
puts "WARNING: Can't create jobs for preparing to spec tests"
62
62
it "Should raise proper exception when the job already exists" do
63
63
xml = @helper . create_job_xml
64
64
name = "the_duplicate_job"
65
- @valid_post_responses . should include (
65
+ expect (
66
+ @valid_post_responses
67
+ ) . to include (
66
68
@client . job . create ( name , xml ) . to_i
67
69
)
68
- @client . job . list ( name ) . include? ( name ) . should be_truthy
70
+ expect (
71
+ @client . job . list ( name ) . include? ( name )
72
+ ) . to be_truthy
69
73
expect (
70
74
lambda { @client . job . create ( name , xml ) }
71
75
) . to raise_error ( JenkinsApi ::Exceptions ::JobAlreadyExists )
72
- @valid_post_responses . should include (
76
+ expect (
77
+ @valid_post_responses
78
+ ) . to include (
73
79
@client . job . delete ( name ) . to_i
74
80
)
75
81
end
You can’t perform that action at this time.
0 commit comments