mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
e59e8ac8e7
- Add .params to models and update controllers - Add afk time to gather - Reannotate models - Fix rspec problem by using latest rspec plugins from github
31 lines
602 B
Ruby
31 lines
602 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: forumers
|
|
#
|
|
# id :integer not null, primary key
|
|
# access :integer
|
|
# created_at :datetime
|
|
# updated_at :datetime
|
|
# forum_id :integer
|
|
# group_id :integer
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_forumers_on_forum_id (forum_id)
|
|
# index_forumers_on_group_id (group_id)
|
|
#
|
|
|
|
require "rails_helper"
|
|
|
|
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
|