Routine weeding of the codebase (#163)

* Routine weeding of the codebase
* fix the spec
This commit is contained in:
Sojan Jose
2019-10-20 16:19:12 +05:30
committed by GitHub
parent 94c6d6db6f
commit 2099dc01a6
16 changed files with 228 additions and 244 deletions

View File

@@ -1,7 +1,7 @@
# frozen_string_literal: true
FactoryBot.define do
factory :channel_widget, class: 'Channel::Widget' do
factory :channel_widget, class: 'Channel::WebWidget' do
sequence(:website_name) { |n| "Example Website #{n}" }
sequence(:website_url) { |n| "https://example-#{n}.com" }
account

View File

@@ -1,11 +0,0 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
website_name: MyString
website_url: MyString
account_id: 1
two:
website_name: MyString
website_url: MyString
account_id: 1

View File

@@ -1,7 +0,0 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
name: MyString
two:
name: MyString

View File

@@ -1,11 +0,0 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# This model initially had no columns defined. If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value