ok.each do |url|
app = build(:client_application)
app.url = url
- assert app.valid?, "#{url} is invalid, when it should be"
+ assert_predicate app, :valid?, "#{url} is invalid, when it should be"
end
bad.each do |url|
app = build(:client_application)
app.url = url
- assert_not app.valid?, "#{url} is valid when it shouldn't be"
+ assert_not_predicate app, :valid?, "#{url} is valid when it shouldn't be"
end
end
ok.each do |url|
app = build(:client_application)
app.support_url = url
- assert app.valid?, "#{url} is invalid, when it should be"
+ assert_predicate app, :valid?, "#{url} is invalid, when it should be"
end
bad.each do |url|
app = build(:client_application)
app.support_url = url
- assert_not app.valid?, "#{url} is valid when it shouldn't be"
+ assert_not_predicate app, :valid?, "#{url} is valid when it shouldn't be"
end
end
ok.each do |url|
app = build(:client_application)
app.callback_url = url
- assert app.valid?, "#{url} is invalid, when it should be"
+ assert_predicate app, :valid?, "#{url} is invalid, when it should be"
end
bad.each do |url|
app = build(:client_application)
app.callback_url = url
- assert_not app.valid?, "#{url} is valid when it shouldn't be"
+ assert_not_predicate app, :valid?, "#{url} is valid when it shouldn't be"
end
end
end