pretty js
This commit is contained in:
parent
059acbdbb8
commit
871cec9ec3
|
@ -14,6 +14,10 @@ module DiscoursePatrons
|
|||
render json: result
|
||||
end
|
||||
|
||||
def show
|
||||
head 200
|
||||
end
|
||||
|
||||
def create
|
||||
::Stripe.api_key = SiteSetting.discourse_patrons_secret_key
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
export default Ember.Controller.extend({
|
||||
actions: {
|
||||
loadMore() {
|
||||
}
|
||||
loadMore() {}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
DiscoursePatrons::Engine.routes.draw do
|
||||
get '/admin' => 'admin#index'
|
||||
get '/' => 'patrons#index'
|
||||
get '/:pid' => 'patrons#index'
|
||||
get '/:pid' => 'patrons#show'
|
||||
|
||||
resources :patrons, only: [:index, :create]
|
||||
end
|
||||
|
|
|
@ -27,6 +27,13 @@ module DiscoursePatrons
|
|||
end
|
||||
end
|
||||
|
||||
describe 'show' do
|
||||
it 'responds ok' do
|
||||
get :show, params: { pid: '123' }, format: :json
|
||||
expect(response).to have_http_status(200)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'create' do
|
||||
let(:payment) do
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue