Refactoring Grape API methods into normal controllers & other things
This commit is contained in:
parent
11ff92c9d7
commit
0e8f59c16f
63 changed files with 336 additions and 406 deletions
15
spec/helpers/accounts_helper_spec.rb
Normal file
15
spec/helpers/accounts_helper_spec.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
require 'rails_helper'
|
||||
|
||||
# Specs in this file have access to a helper object that includes
|
||||
# the AccountsHelper. For example:
|
||||
#
|
||||
# describe AccountsHelper do
|
||||
# describe "string concat" do
|
||||
# it "concats two strings with spaces" do
|
||||
# expect(helper.concat_strings("this","that")).to eq("this that")
|
||||
# end
|
||||
# end
|
||||
# end
|
||||
RSpec.describe AccountsHelper, type: :helper do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
15
spec/helpers/api/salmon_helper_spec.rb
Normal file
15
spec/helpers/api/salmon_helper_spec.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
require 'rails_helper'
|
||||
|
||||
# Specs in this file have access to a helper object that includes
|
||||
# the Api::SalmonHelper. For example:
|
||||
#
|
||||
# describe Api::SalmonHelper do
|
||||
# describe "string concat" do
|
||||
# it "concats two strings with spaces" do
|
||||
# expect(helper.concat_strings("this","that")).to eq("this that")
|
||||
# end
|
||||
# end
|
||||
# end
|
||||
RSpec.describe Api::SalmonHelper, type: :helper do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
15
spec/helpers/api/subscriptions_helper_spec.rb
Normal file
15
spec/helpers/api/subscriptions_helper_spec.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
require 'rails_helper'
|
||||
|
||||
# Specs in this file have access to a helper object that includes
|
||||
# the Api::SubscriptionsHelper. For example:
|
||||
#
|
||||
# describe Api::SubscriptionsHelper do
|
||||
# describe "string concat" do
|
||||
# it "concats two strings with spaces" do
|
||||
# expect(helper.concat_strings("this","that")).to eq("this that")
|
||||
# end
|
||||
# end
|
||||
# end
|
||||
RSpec.describe Api::SubscriptionsHelper, type: :helper do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
|
@ -28,18 +28,4 @@ RSpec.describe ApplicationHelper, type: :helper do
|
|||
expect(helper.local_id?('tag:foreign.tld;objectId=12:objectType=Status')).to be false
|
||||
end
|
||||
end
|
||||
|
||||
describe '#add_base_url_prefix' do
|
||||
it 'returns full API URL from base to suffix' do
|
||||
expect(helper.add_base_url_prefix('test')).to eql "#{root_url}api/test"
|
||||
end
|
||||
end
|
||||
|
||||
describe '#profile_url' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#status_url' do
|
||||
pending
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe AtomHelper, type: :helper do
|
||||
RSpec.describe AtomBuilderHelper, type: :helper do
|
||||
describe '#stream_updated_at' do
|
||||
pending
|
||||
end
|
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe ProfileHelper, type: :helper do
|
||||
RSpec.describe StreamEntriesHelper, type: :helper do
|
||||
describe '#display_name' do
|
||||
pending
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue