Skip to content

Ajax branch -> Follow user#1

Open
tambakoo wants to merge 7 commits into
follow_userfrom
ajax_branch
Open

Ajax branch -> Follow user#1
tambakoo wants to merge 7 commits into
follow_userfrom
ajax_branch

Conversation

@tambakoo

Copy link
Copy Markdown
Owner

No description provided.

Comment thread spec/spec_helper.rb

# The settings below are suggested to provide a good initial experience
# with RSpec, but feel free to customize to your heart's content.
=begin

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/BlockComments: Do not use block comments.

Comment thread spec/spec_helper.rb
@@ -0,0 +1,96 @@
# This file was generated by the `rails generate rspec:install` command. Conventionally, all

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.
Metrics/LineLength: Line is too long. [92/80]

Comment thread spec/rails_helper.rb
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
# Prevent database truncation if the environment is production
abort("The Rails environment is running in production mode!") if Rails.env.production?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
Metrics/LineLength: Line is too long. [86/80]

Comment thread spec/rails_helper.rb
# This file is copied to spec/ when you run 'rails generate rspec:install'
require 'spec_helper'
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/ExpandPathArguments: Use expand_path('../config/environment', dir) instead of expand_path('../../config/environment', FILE).

Comment thread spec/rails_helper.rb
@@ -0,0 +1,57 @@
# This file is copied to spec/ when you run 'rails generate rspec:install'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.

Comment thread spec/models/user_spec.rb
expect(assc.macro).to eq :has_many
end

it "has_many following " do

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/Tab: Tab detected.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

Comment thread spec/models/user_spec.rb
it "has_many followers" do
assc = described_class.reflect_on_association(:followers)
expect(assc.macro).to eq :has_many
end

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/Tab: Tab detected.

Comment thread spec/models/user_spec.rb

it "has_many followers" do
assc = described_class.reflect_on_association(:followers)
expect(assc.macro).to eq :has_many

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/Tab: Tab detected.

Comment thread spec/models/user_spec.rb
end

it "has_many followers" do
assc = described_class.reflect_on_association(:followers)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/Tab: Tab detected.

Comment thread spec/models/user_spec.rb
expect(assc.macro).to eq :has_many
end

it "has_many followers" do

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/Tab: Tab detected.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant