Ajax branch -> Follow user#1
Conversation
|
|
||
| # The settings below are suggested to provide a good initial experience | ||
| # with RSpec, but feel free to customize to your heart's content. | ||
| =begin |
There was a problem hiding this comment.
Style/BlockComments: Do not use block comments.
| @@ -0,0 +1,96 @@ | |||
| # This file was generated by the `rails generate rspec:install` command. Conventionally, all | |||
There was a problem hiding this comment.
Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.
Metrics/LineLength: Line is too long. [92/80]
| 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? |
There was a problem hiding this comment.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
Metrics/LineLength: Line is too long. [86/80]
| # 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__) |
There was a problem hiding this comment.
Style/ExpandPathArguments: Use expand_path('../config/environment', dir) instead of expand_path('../../config/environment', FILE).
| @@ -0,0 +1,57 @@ | |||
| # This file is copied to spec/ when you run 'rails generate rspec:install' | |||
There was a problem hiding this comment.
Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.
| expect(assc.macro).to eq :has_many | ||
| end | ||
|
|
||
| it "has_many following " do |
There was a problem hiding this comment.
Layout/Tab: Tab detected.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
| it "has_many followers" do | ||
| assc = described_class.reflect_on_association(:followers) | ||
| expect(assc.macro).to eq :has_many | ||
| end |
|
|
||
| it "has_many followers" do | ||
| assc = described_class.reflect_on_association(:followers) | ||
| expect(assc.macro).to eq :has_many |
| end | ||
|
|
||
| it "has_many followers" do | ||
| assc = described_class.reflect_on_association(:followers) |
| expect(assc.macro).to eq :has_many | ||
| end | ||
|
|
||
| it "has_many followers" do |
There was a problem hiding this comment.
Layout/Tab: Tab detected.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
No description provided.