Skip to content

Commit

Permalink
fix specs warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
salkar committed Nov 5, 2018
1 parent f876838 commit 0be6e2b
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 22 deletions.
1 change: 1 addition & 0 deletions spec/dummy/config/application.rb
Expand Up @@ -25,5 +25,6 @@ class Application < Rails::Application
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
config.autoload_paths += Dir["#{config.root}/lib/**/"]
config.active_record.sqlite3.represent_boolean_as_integer = true
end
end
4 changes: 2 additions & 2 deletions spec/factories/comments.rb
Expand Up @@ -2,7 +2,7 @@

FactoryBot.define do
factory :comment do
post_id 1
user_id 1
post_id { 1 }
user_id { 1 }
end
end
10 changes: 5 additions & 5 deletions spec/factories/inkwell_blog_items.rb
Expand Up @@ -2,10 +2,10 @@

FactoryBot.define do
factory :inkwell_blog_item, class: "Inkwell::BlogItem" do
blog_item_subject_id 1
blog_item_subject_type "User"
blog_item_object_id 1
blog_item_object_type "Post"
reblog false
blog_item_subject_id { 1 }
blog_item_subject_type { "User" }
blog_item_object_id { 1 }
blog_item_object_type { "Post" }
reblog { false }
end
end
8 changes: 4 additions & 4 deletions spec/factories/inkwell_favorites.rb
Expand Up @@ -2,9 +2,9 @@

FactoryBot.define do
factory :inkwell_favorite, class: "Inkwell::Favorite" do
favorite_subject_id 1
favorite_subject_type "User"
favorite_object_id 1
favorite_object_type "Post"
favorite_subject_id { 1 }
favorite_subject_type { "User" }
favorite_object_id { 1 }
favorite_object_type { "Post" }
end
end
4 changes: 2 additions & 2 deletions spec/factories/inkwell_object_counter_caches.rb
Expand Up @@ -2,7 +2,7 @@

FactoryBot.define do
factory :inkwell_object_counter_cache, class: "Inkwell::ObjectCounterCache" do
cached_object_id 1
cached_object_type "Post"
cached_object_id { 1 }
cached_object_type { "Post" }
end
end
16 changes: 8 additions & 8 deletions spec/factories/inkwell_subject_counter_caches.rb
Expand Up @@ -3,13 +3,13 @@
FactoryBot.define do
factory :inkwell_subject_counter_cach,
class: "Inkwell::SubjectCounterCache" do
cached_subject_id 1
cached_subject_type "User"
favorite_count 1
blog_item_count 1
reblog_count 1
comment_count 1
follower_count 1
following_count 1
cached_subject_id { 1 }
cached_subject_type { "User" }
favorite_count { 1 }
blog_item_count { 1 }
reblog_count { 1 }
comment_count { 1 }
follower_count { 1 }
following_count { 1 }
end
end
2 changes: 1 addition & 1 deletion spec/factories/posts.rb
Expand Up @@ -2,6 +2,6 @@

FactoryBot.define do
factory :post do
user_id 1
user_id { 1 }
end
end

0 comments on commit 0be6e2b

Please sign in to comment.