2015-08-20 17:11:29 +00:00
|
|
|
# == Schema Information
|
|
|
|
#
|
2015-08-20 18:36:01 +00:00
|
|
|
# Table name: forumers
|
2015-08-20 17:11:29 +00:00
|
|
|
#
|
2015-08-20 18:36:01 +00:00
|
|
|
# id :integer not null, primary key
|
|
|
|
# access :integer
|
|
|
|
# created_at :datetime
|
|
|
|
# updated_at :datetime
|
2020-03-18 03:38:17 +00:00
|
|
|
# forum_id :integer
|
|
|
|
# group_id :integer
|
|
|
|
#
|
|
|
|
# Indexes
|
|
|
|
#
|
|
|
|
# index_forumers_on_forum_id (forum_id)
|
|
|
|
# index_forumers_on_group_id (group_id)
|
2015-08-20 17:11:29 +00:00
|
|
|
#
|
|
|
|
|
2019-10-17 18:29:15 +00:00
|
|
|
require "rails_helper"
|
2015-08-20 17:11:29 +00:00
|
|
|
|
|
|
|
describe Forumer do
|
|
|
|
describe "create" do
|
|
|
|
let(:forumer) { build :forumer }
|
|
|
|
|
|
|
|
it "creates a new forumer" do
|
|
|
|
expect(forumer.valid?).to eq(true)
|
|
|
|
expect do
|
|
|
|
forumer.save!
|
|
|
|
end.to change(Forumer, :count).by(1)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|