Upgrade to Rails 5.0.0.1
This commit is contained in:
parent
ff2cbc0753
commit
10ba09f546
47 changed files with 398 additions and 291 deletions
|
@ -12,12 +12,12 @@ RSpec.describe XrdController, type: :controller do
|
|||
let(:alice) { Fabricate(:account, username: 'alice') }
|
||||
|
||||
it 'returns http success when account can be found' do
|
||||
get :webfinger, resource: "acct:#{alice.username}@anything.com"
|
||||
get :webfinger, params: { resource: "acct:#{alice.username}@anything.com" }
|
||||
expect(response).to have_http_status(:success)
|
||||
end
|
||||
|
||||
it 'returns http not found when account cannot be found' do
|
||||
get :webfinger, resource: 'acct:not@existing.com'
|
||||
get :webfinger, params: { resource: 'acct:not@existing.com' }
|
||||
expect(response).to have_http_status(:not_found)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue