Adding a Mention model, test stubs
This commit is contained in:
parent
42eeecba3f
commit
71fe24096c
38 changed files with 355 additions and 47 deletions
|
@ -1,5 +1,11 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe AtomController, type: :controller do
|
||||
describe 'GET #user_stream' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe 'GET #entry' do
|
||||
pending
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe HomeController, type: :controller do
|
||||
|
||||
describe 'GET #index' do
|
||||
pending
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe ProfileController, type: :controller do
|
||||
|
||||
describe "GET #show" do
|
||||
it "returns http success" do
|
||||
get :show
|
||||
expect(response).to have_http_status(:success)
|
||||
end
|
||||
describe 'GET #show' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe 'GET #entry' do
|
||||
pending
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe XrdController, type: :controller do
|
||||
describe 'GET #host_meta' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe 'GET #webfinger' do
|
||||
pending
|
||||
end
|
||||
end
|
||||
|
|
15
spec/helpers/routing_helper.rb
Normal file
15
spec/helpers/routing_helper.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
require 'rails_helper'
|
||||
|
||||
# Specs in this file have access to a helper object that includes
|
||||
# the RoutingHelper. For example:
|
||||
#
|
||||
# describe RoutingHelper 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 RoutingHelper, type: :helper do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
|
@ -1,5 +1,47 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Account, type: :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
describe '#follow!' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#unfollow!' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#following?' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#local?' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#acct' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#subscribed?' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#keypair' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#subscription' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#object_type' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#title' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#content' do
|
||||
pending
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,5 +1,31 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Favourite, type: :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
describe '#verb' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#title' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#content' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#object_type' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#target' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#mentions' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#thread' do
|
||||
pending
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,5 +1,27 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Follow, type: :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
describe '#verb' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#title' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#content' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#object_type' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#target' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#mentions' do
|
||||
pending
|
||||
end
|
||||
end
|
||||
|
|
5
spec/models/mention_spec.rb
Normal file
5
spec/models/mention_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Mention, type: :model do
|
||||
|
||||
end
|
|
@ -1,5 +1,35 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Status, type: :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
describe '#local?' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#reblog?' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#reply?' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#mentions' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#verb' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#object_type' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#title' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#target' do
|
||||
pending
|
||||
end
|
||||
end
|
||||
|
|
11
spec/models/stream_entry_spec.rb
Normal file
11
spec/models/stream_entry_spec.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe StreamEntry, type: :model do
|
||||
describe '#targeted?' do
|
||||
pending
|
||||
end
|
||||
|
||||
describe '#threaded?' do
|
||||
pending
|
||||
end
|
||||
end
|
|
@ -1,5 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Stream, type: :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
|
@ -1,5 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe User, type: :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
|
||||
end
|
||||
|
|
16
spec/rails_helper.rb
Normal file
16
spec/rails_helper.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
ENV['RAILS_ENV'] ||= 'test'
|
||||
require File.expand_path('../../config/environment', __FILE__)
|
||||
|
||||
abort("The Rails environment is running in production mode!") if Rails.env.production?
|
||||
|
||||
require 'spec_helper'
|
||||
require 'rspec/rails'
|
||||
|
||||
ActiveRecord::Migration.maintain_test_schema!
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
||||
config.use_transactional_fixtures = true
|
||||
config.infer_spec_type_from_file_location!
|
||||
config.filter_rails_from_backtrace!
|
||||
end
|
5
spec/services/fetch_feed_service_spec.rb
Normal file
5
spec/services/fetch_feed_service_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe FetchFeedService do
|
||||
pending
|
||||
end
|
5
spec/services/follow_remote_account_service_spec.rb
Normal file
5
spec/services/follow_remote_account_service_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe FollowRemoteAccountService do
|
||||
pending
|
||||
end
|
5
spec/services/follow_service_spec.rb
Normal file
5
spec/services/follow_service_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe FollowService do
|
||||
pending
|
||||
end
|
5
spec/services/post_status_service_spec.rb
Normal file
5
spec/services/post_status_service_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe PostStatusService do
|
||||
pending
|
||||
end
|
5
spec/services/process_feed_service_spec.rb
Normal file
5
spec/services/process_feed_service_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe ProcessFeedService do
|
||||
pending
|
||||
end
|
5
spec/services/process_interaction_service_spec.rb
Normal file
5
spec/services/process_interaction_service_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe ProcessInteractionService do
|
||||
pending
|
||||
end
|
5
spec/services/process_mentions_service_spec.rb
Normal file
5
spec/services/process_mentions_service_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe ProcessMentionsService do
|
||||
pending
|
||||
end
|
5
spec/services/reblog_service_spec.rb
Normal file
5
spec/services/reblog_service_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe ReblogService do
|
||||
pending
|
||||
end
|
5
spec/services/send_interaction_service_spec.rb
Normal file
5
spec/services/send_interaction_service_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe SendInteractionService do
|
||||
pending
|
||||
end
|
5
spec/services/setup_local_account_service_spec.rb
Normal file
5
spec/services/setup_local_account_service_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe SetupLocalAccountService do
|
||||
pending
|
||||
end
|
5
spec/services/unfollow_service_spec.rb
Normal file
5
spec/services/unfollow_service_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe UnfollowService do
|
||||
pending
|
||||
end
|
15
spec/spec_helper.rb
Normal file
15
spec/spec_helper.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
require 'simplecov'
|
||||
|
||||
SimpleCov.start 'rails' do
|
||||
add_group "Services", "app/services"
|
||||
end
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.expect_with :rspec do |expectations|
|
||||
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
||||
end
|
||||
|
||||
config.mock_with :rspec do |mocks|
|
||||
mocks.verify_partial_doubles = true
|
||||
end
|
||||
end
|
|
@ -1,5 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "profile/show.html.haml", type: :view do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue