mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 13:01:02 +00:00
26 lines
503 B
Ruby
26 lines
503 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: forumers
|
|
#
|
|
# id :integer not null, primary key
|
|
# forum_id :integer
|
|
# group_id :integer
|
|
# access :integer
|
|
# created_at :datetime
|
|
# updated_at :datetime
|
|
#
|
|
|
|
require "spec_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
|