Upgraded rspec 2.14.2 to 2.99.0
This commit is contained in:
@@ -23,6 +23,6 @@ feature 'command injection' do
|
||||
end
|
||||
click_on 'Start Upload'
|
||||
end
|
||||
pending(:if => verifying_fixed?) { File.exists?(legit_file).should be_false }
|
||||
pending(:if => verifying_fixed?) { File.exists?(legit_file).should be_falsey }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -7,7 +7,7 @@ feature 'mass assignment' do
|
||||
end
|
||||
|
||||
scenario 'attack one' do
|
||||
@normal_user.admin.should be_false
|
||||
@normal_user.admin.should be_falsey
|
||||
|
||||
login(@normal_user)
|
||||
|
||||
@@ -17,7 +17,7 @@ feature 'mass assignment' do
|
||||
:password_confirmation => @normal_user.clear_password}}
|
||||
page.driver.put "/users/#{@normal_user.user_id}.json", params
|
||||
|
||||
pending(:if => verifying_fixed?) { @normal_user.reload.admin.should be_true }
|
||||
pending(:if => verifying_fixed?) { @normal_user.reload.admin.should be_truthy }
|
||||
end
|
||||
|
||||
scenario 'attack two' do
|
||||
@@ -31,7 +31,7 @@ feature 'mass assignment' do
|
||||
|
||||
pending(:if => verifying_fixed?) {
|
||||
User.last.email.should == 'hackety@h4x0rs.c0m'
|
||||
User.last.admin.should be_true
|
||||
User.last.admin.should be_truthy
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8,7 +8,7 @@ feature 'sql injection' do
|
||||
end
|
||||
|
||||
scenario 'attack' do
|
||||
@admin_user.admin.should be_true
|
||||
@admin_user.admin.should be_truthy
|
||||
|
||||
login(@normal_user)
|
||||
|
||||
@@ -29,4 +29,4 @@ feature 'sql injection' do
|
||||
@admin_user.admin.should == true
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user